Samuel
it’s like several commands confusingly crammed into one so it’s been superseded by the more idiomatic git switch and git restore
2 18
Kainoa
Ok, but it realistically completes *one* task: checking out a new branch. Why would that even need to be multiple commands?
1 5
Samuel
because you can also use it to revert a file to given commit which is completely different, hence git restore
1 11
Samuel
@samuel.fm
git checkout <commit> -- /path/to/file
1 1
Kainoa
I can't tell if I love or hate this, but I 100% get your point now about using git switch
1 2
Samuel
yep, I mean I still use checkout lol but you can see why they want to split the command out into simpler ones
1 3
Kainoa
The git project needs to have a page that's just "The year is 2025, use these commands please" so I can stop being dumb :P
2