If you want an alternative to the ~/.gitconfig
option and open to digging in a little more, another option is to write entirely custom git commands by wrapping them in a global node package.
In your package.json, you'd define the root command (example: gt
), and then filter the specific commands to execute the correct git commands. For example, git checkout my-branch
could be gt co mybranch
.
The "christian-git" package on npm uses this method: https://github.com/alexmacarthur/christian-git