GIT Aliases and Shortcuts

It’s easy to create an alias or shortcut in GIT. You can easily save yourself valuable time and keystrokes by learning how to setup your own shortcuts with the most common examples below. Just copy and paste these commands into your GIT shell.

Shorten checkout command

git config --global alias.chk checkout

git chk will now be a shortcut for git checkout

Shorten commit command

git config --global alias.ci commit

git ci will now be a shortcut for git commit

Shorten status command

git config --global alias.st status

git st will now be a shortcut for git status

Shorten branch command

git config --global alias.br branch

git br will now be a shortcut for git branch

 

Leave a Comment