Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#Like hg pull. Pulls all branches
git fetch <remote> (e.g. git fetch origin)
#Then to see what has been pulled (between my local master and the origin/master)
git log --oneline master..origin/master
#If not on master branch, switch to it
git checkout master
#Then merge the changes (like hg up)
git merge origin/master
#Or simply
git pull <remote>
#Or to rebase
git pull --rebase <remote>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.