News for hackers. Stuff that matters.
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
Re:Git is too hard by samhh on Tuesday November 17, 2020 @07:04AM (#25122762)
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.
Re:Git is too hard by kubanczyk on Tuesday November 17, 2020 @06:04PM (#25131116)
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.