Skip to content

Instantly share code, notes, and snippets.

@manojkulkarni30
Last active April 24, 2017 13:51
Show Gist options
  • Save manojkulkarni30/43a043077da8b037ba744e9808f73b3b to your computer and use it in GitHub Desktop.
Save manojkulkarni30/43a043077da8b037ba744e9808f73b3b to your computer and use it in GitHub Desktop.
Syncing a fork
1. git remote -v (List all the remote repositories)
2. git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
3. git fetch upstream (Pull the change from upstream repository)
4. git checkout master (Checkout master branch on your local)
 
5. git merge upstream/master (Merge the change from upstream/master to local master branch)
6. git push (To push your local change to your fork github repository)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment