Create your own git commands (aliases)

Ever wanted to shorten a git command? You can go with shell alilas for sure but you have to always include context so that you don't forget what each ailas stands for but you can define your own commands in git using aliases.

git config --global alias.  

For example; I'm too lazy to type git status so I want to shorten this to git s

git config --global alias.s status

And here we go now you can just type git s and get the status of current repository.


Get our stories delivered

From us to your inbox weekly.