Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 903 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 903 Bytes

git-custom-commands

Repository with custom GIT commands that can be used to automate manual tasks or as shortcuts for common command combos, etc.

Basics

  1. All scripts must start with git- prefix. What follows the prefix is the actual name of the command that you want to use.
  2. They cannot end with .sh or similar. Example: git-lazycheckout.
  3. 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)
  4. Then you need to make sure they are executable. You can change the attribute by running chmod +x src/*

How to use your custom git commands

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>.