Syncing a fork with git/github
Posted on Mon 16 June 2014 in Linux • 1 min read
Configure a remote
git remove -v
# git remote add
git remote add upstream https://github.com/foo/bar.git
git remove -v
Pull "upstream"
# git fetch
git fetch upstream
Checkout the master
git checkout master
Merge "upstream" master to local master
# git merge /
git merge upstream/master
(optional) Delete old branch
# git push origin :
git push origin :foobar
git branch -d foobar
Refs https://help.github.com/articles/