How to Use aliases in your bash to make life easier

Git bash/ unix provides a very unique feature to shortcut your commands. called “alias command”

As the frequently used bash terminal in windows is git here are some shortcuts you can configure to make your life eaiser.

 

alias gpod=”git pull origin develop”

alias gp=”git pull”

alias gch=”git checkout”

alias gpo=”git pull origin”

 

Now you can simply type in:

gpod for git pull origin develop

gp for git pull

gch <branch-name>

 

Leave a comment