Ever found you’ve accidentally entered too many gits in your terminal and wondered if there’s a solution to it? I quite often type git then go away and come back, then type a full git status after it. This leads to a lovely (annoying) error out the box:
$ git git status git: 'git' is not a git command. See 'git --help'. What a git.
My initial thought was overriding the git binary in my $PATH and having it strip any leading arguments that match git, so we end up running just the git status at the end of the arguments.
No. Not once. In fact, I barely type
gitinto the terminal at all these days and I think CLI is the worst possible way to interact with git repos in majority of cases