Must have bash aliases for git command line users

alias gb=’git branch’
alias gc=’git commit’
alias ga=’git add’
alias gco=’git checkout ‘
alias gd=’git diff’
alias gp=’git push’
alias gp=’git push’
alias pp=’git pull && git push’
alias gst=’git status’

My¬†Favorite¬†here is ‘pp’, pull and push on a single command. Quite handy and saves a lot of time. This can obviously be improved on further, that will be done when I learn more of bash scripting. As of now I have decided to build on my bashrc and vimrc to setup a more productive environment.

 

Thanks to this link. I have modified a few things to suit me.

Advertisements