Compare feature branch changes with upstream:
git diff $( git merge-base master HEAD )
Thanks Bill!
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Showing posts with label upstream. Show all posts
Showing posts with label upstream. Show all posts
Update your git fork from the upstream project
Once:
git remote add upstream https://github.com/otheruser/repo.git
Every time:
git fetch upstream
git checkout master # your fork
git merge upstream/master
# Do not do this if your repo has more than one user:
git reset --hard upstream/master
git push --force origin master
(source)
git remote add upstream https://github.com/otheruser/repo.git
Every time:
git fetch upstream
git checkout master # your fork
git merge upstream/master
# Do not do this if your repo has more than one user:
git reset --hard upstream/master
git push --force origin master
(source)
Subscribe to:
Posts (Atom)