I recently pushed a new repo git-ignore. It's a convenient script to fetch and install remote .gitignore
files.
In writing the script, I learned something very cool. If you prefix your script with git-
, make it executable, and put it in the path, Git will automatically pick it up and make it available as a subcommand.
This means it can be called like so:
❯ git ignore swift