How to create Aliasing Commands?

Submitted by Rajasekhar on Sat, 11/10/2018 - 13:35
  1. Sometimes, we may want to customize our Git workflow and create shortcuts for common tasks. To do this, we can create aliases in Git.
    • Think of the command you want to alias.
    • Add the alias to your global Git config.
    • Use the shorter command to save time and effort.
  2. For example,
    • git status
    • Git config --global status
    • Git status = git st are equal now.

  1. Example 2, git branch
    • Git config –global branch
    • Git branch = git bh are worked as same commands now.