Created
July 30, 2023 17:31
-
-
Save Abhimanyu14/d6d27df93e027f4e7c7bd1b542e143c9 to your computer and use it in GitHub Desktop.
How to move to a fork after cloning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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