News for hackers. Stuff that matters.
Re:Git is too hard by ufo on Tuesday November 17, 2020 @09:31AM (#25124092)
For recent versions of git I'd suggest using "git switch" and "git restore" instead of git checkout.

It avoids much of the confusion from the checkout command, which does very different things depending on what flags you pass it. That said, this is only one git command. The rest still has plenty of room for confusion.

Re:Git is too hard by gen220 on Tuesday November 17, 2020 @11:11AM (#25125399)
Yes! It must have been somewhat controversial to add more “porcelain”, but I’ve loved the recent changes. Restore is a great name.

They’ve also added some guiding comments to various commands (like rebase) that make the CLI more user friendly.

I think checkout was the worst offender, because of how necessary it’s use was for most workflows. Branch could probably use some pruning, too.