Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Abhimanyu14/d6d27df93e027f4e7c7bd1b542e143c9 to your computer and use it in GitHub Desktop.

Select an option

Save Abhimanyu14/d6d27df93e027f4e7c7bd1b542e143c9 to your computer and use it in GitHub Desktop.
How to move to a fork after cloning
1. Fork their repo on Github
2. In your local, rename your origin remote to upstream
git remote rename origin upstream
3. Add a new origin
git remote add origin [email protected]
4. Fetch & push
git fetch origin
git push origin
Source - https://gist.github.com/jagregory/710671
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment