Repository with custom GIT commands that can be used to automate manual tasks or as shortcuts for common command combos, etc.
- All scripts must start with
git-
prefix. What follows the prefix is the actual name of the command that you want to use. - They cannot end with .sh or similar. Example:
git-lazycheckout
. - Scripts must be accessible from $PATH. This can be done by:
- Modifying your .bashrc (or similar to your shell/terminall)
- Installing (copying or moving) the scripts to any of the valid default $PATH locations (less recommended)
- Then you need to make sure they are executable. You can change the attribute by running
chmod +x src/*
Once the scripts are in the right location, in the new terminal session (to take new scripts from $PATH) you can just invoke them with git <your_command>
.