Thursday, October 24, 2019

Deals with github pull request

Once you forked the upstream repo and may have also done a pull request, the upstream repo most likely will be moving forward with new commits. To work on new fixes, it is important to synch up your own repo with the upstream. Here is the process to do that.


git fetch upstream
git checkout master
git merge upstream/master
git push origin master

The commands above basically do the following things:

1. get the latest from upstream (it should be showing what the upstream is at .git/config)
2. switch to your local master branch
3. then merge the upstream and your own master branch
4. eventually push everything in the local master branch to your own remote repo.

No comments:

Post a Comment