4 ms·
Fetch updates your local repository (which is behind the scenes, separate from your literal local files). Checkout modifies local files to be like whatever you
by skinner927 3y ago
Fetch updates your local repository (which is behind the scenes, separate from your literal local files).
Checkout modifies local files to be like whatever you’re checking out.
And pull’s only purpose is to screw up your local files. :)
- nvy 3y ago>Fetch updates your local repository (which is behind the scenes, separate from your literal local files). Therein lies the chief problem with git: it's a leaky abstraction. Nobody actually should give a flying shit about commit hashes and ^HEAD or whatever it's called. All the newbie tutorials you find waste so much time on that, but what people really care about when they start using git is "what the fuck happened to my files and how do I get them back the way they were". Git docs and tutorials are breathtakingly bad at showing this.