4 ms·
> There’s a meme that Git is hard to use but I think it’s conflating the challenges of getting used to version control at all Not sure about that. Git certain
by guenthert 3y ago
> There’s a meme that Git is hard to use but I think it’s conflating the challenges of getting used to version control at all
Not sure about that. Git certainly doesn't make it easier by idiosyncratic use of terms and behavior. Why does 'pull' imply 'checkout'?
- meindnoch 3y ago>Why does 'pull' imply 'checkout'? ??? It doesn't.
- guenthert 3y agoIt sadly clobbers your working tree. Not calling that checkout doesn't make it any better. Nothing other than checkout ought to change the working tree -- is that too much to ask?
- glandium 3y agoThere are plenty other commands that change the working tree. rebase, cherry-pick, revert, merge, etc. Are you suggesting that all these should be done by checkout? pull is fetch + rebase or merge. You can use fetch instead of pull if you prefer. Or `git remote update`, for that matter.
- acdha 3y agoHow does it clobber your working tree? You’ll get an error if there are any conflicts.
- guenthert 3y agoYes, sorry, that was poor writing style. Git does indeed warn you that it would clobber your working tree and suggests that you do it in its behalf (the stash/pop dance). Why is the user exposed to that? If git needs those files checked out for the merge, does it really have to be in the working tree? Why not in a hidden, ephemeral subdirectory? Leave my working tree alone, I say!
- CRConrad 3y agoWhy should the word "checkout" imply anything particular? (Except leaving and paying for your hotel room?)