3 ms·
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,
by ufo 6y ago
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.
- gen220 6y agoYes! 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.