I use git on daily basis. Git can be a little verbose sometimes. It is impossible to remember all commands, and check the documentation takes a while.
Git support a mechanism to define custom commands called alias. Using alias you can easily create shortcut to other commands. You can use more complex commands or shorten typically used ones.
There is two ways to create an alias. You can use ‘git config’ to setup.
# 1. Create a short version of 'git status'
git config --global alias.st status
Or you can manually edit ~/.gitconfig and add it to [alias] block.
# 2. Edit ~/.gitconfig
st = status
Next time you want to check the status of your repository just type: