The trouble is that git aliases aren't composable and you can't install them. Each installation has its own aliases. If you are in a new machine you must define the aliases yourself. This also makes git aliases have poor discoverability.
Compare this with another tool that lets people extend its own command, cargo. You can do cargo install <something> and then run cargo <something>.
As a culture we need to move away from “just write these things yourself/copy these aliases and maintain them”. It makes things too much of a rite of passage.
No, I have never used NPM directly. Why do you ask?
Compare this with another tool that lets people extend its own command, cargo. You can do cargo install <something> and then run cargo <something>.