logoalt Hacker News

lelandbateyyesterday at 8:52 PM2 repliesview on HN

It's quite true. Years ago, after `git switch` was released, I wanted to try to switch from `git checkout` to `git switch`. Ultimately I had to set up some bash nastiness to error and "scold" me when I typed `git checkout` from memory, while still allowing shell scripts to call `git checkout` just fine. It was a fun exercise, and at least now I know how I could do it again: https://github.com/lelandbatey/dotfiles/blob/99c08f81fc89710...


Replies

wild_eggyesterday at 10:42 PM

What's the point of switching to switch? I've only ever used checkout and not sure what I am missing out on.

irishcoffeeyesterday at 9:50 PM

Your beef is with git, which is terrible, not a shell.