Samuel
@samuel.fm
it’s like several commands confusingly crammed into one so it’s been superseded by the more idiomatic git switch and git restore
2 18Ok, but it realistically completes *one* task: checking out a new branch. Why would that even need to be multiple commands?
1 5because you can also use it to revert a file to given commit which is completely different, hence git restore
1 11Wait you can use git checkout to revert a file?? 😭
3 10git checkout <commit> -- /path/to/file
1 1I'm gonna have some real old habits to break, I learned how to use the git CLI probably 6-7 years ago when I was still a dumb teenager and I still use it mostly the same way.......
2 9Hey, I just learned git switch was a thing; I mean some things are muscle memory at this point
6for what it's worth that's more CLI than the average developer knows, the "senior" dev at my place still manages to fuck up the most basic merges
You can checkout a rev, revert files, and a way too many other things fwiw
2