Hacker News new | ask | show | jobs
by kyleslattery 4603 days ago
You can even collapse the first one into a single command: "git pull remotename master"
2 comments

And the second one too: "git pull --rebase remotename master"
Note that in this case, your remote tracking branches wont be updated, so git status will say you are ahead of the remote, while you are in fact at the same point.

A "git fetch <remote>" would then update the remote tracking branches.