News for hackers. Stuff that matters.
Re:Git undo: We can do better by stormbrew on Tuesday June 22, 2021 @11:55AM (#27593283)
yep, that's right. Or rather, origin and master are just two parameters given to pull/fetch/push to describe a target while origin/master is just the local name for, as you say, the locally cached ref.

Comparing against that locally cached ref is also what git uses to tell you how far behind/ahead of the upstream you are in `git status` or whatever. Fetch and push are the only git commands that actually talk to a remote (at the "user level" of the command set anyways, those are also composed of lower level commands).

There are no comments on this comment yet.