Skip to content

fork repository remote and local how to manage after merge #147142

Discussion options

You must be logged in to vote

Unfortunately, there's no direct command to "switch" a local repository to a different remote origin.

Here's the most straightforward approach:

Delete the Forged Repository:

Remove the local directory: Use your file explorer to delete the entire directory of the forged repository.
Remove the Git configuration: If you've made any custom configurations, you can remove them using Git commands. However, a simple directory deletion is often sufficient.
Clone the Original Repository:

Open your terminal: Navigate to the desired directory where you want the new clone.
Use the git clone command: Execute the following command, replacing https://github.com/original_owner/original_repo.git with the a…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Shaddycracker
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Programming Help Programming languages, open source, and software development.
3 participants