apps > git
document updated 4 months ago, on May 15, 2022

If you place an executable named git-MYCOMMAND anywhere in your $PATH, then running `git MYCOMMAND` will call that script, just as if it were an official command underneath git. It can be anything from a shell script to a compiled C executable, it's totally up to you.

This is a good explanation of the details of this:

Git aliases are nice, but they're nowhere near as powerful and flexible as custom git commands can be.


Git commands useful for creating your own scripts

It seems like git has an endless number of commands. Most of them are user-oriented, but there are a few that are particularly useful for ingestion into your custom scripts:

There are some Perl modules for accessing some of the Git plumbing:


Other people's custom git commands

While we're here, this is a list of custom commands that other people have published, that I particularly like: