Re:Git is too hard
by nicoburns on Tuesday November 17, 2020 @06:57AM
(#25122703)
I think `git checkout` definitely needs to be there. Also `git reset` in case you make a mistake while `git add`ing
[ Parent
| on HN ]
I 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`.
Re:Git is too hard
by secondcoming on Tuesday November 17, 2020 @07:10AM
(#25122817)
Added checkout. I'm not sure about classifying 'git reset' as an 'everyday' command.
Correct. 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.