4 ms·
I think `git checkout` definitely needs to be there. Also `git reset` in case you make a mistake while `git add`ing
by nicoburns 6y ago
I think `git checkout` definitely needs to be there. Also `git reset` in case you make a mistake while `git add`ing
- samhh 6y agoI think the most common usage of that - switching branches - could be replaced with `git switch` now. That leaves `git checkout` in the set of more advanced operations for more niche use cases. Same goes I think for `git restore` over `git reset`.
- secondcoming 6y agoAdded checkout. I'm not sure about classifying 'git reset' as an 'everyday' command.
- kubanczyk 6y agoCorrect. The use case falls under `git status` really, it will give you boilerplate commands like `git add`, `git reset`, `git checkout -- file`, or even `git rebase --abort` depending on a situation.