My git alias in .bashrc

  |   Source

My favourite alias are g, gau, gc,gt,gl,gdc.

# Git alias
alias g="git status"

alias ga="git add"

alias gaa="git add ."

alias gau="git add -u"

alias gc="git commit -m"

alias gca="git commit -am"

alias gb="git branch"

alias gbd="git branch -d"

alias gco="git checkout"

alias gcob="git checkout -b"

alias gt="git stash"

alias gta="git stash apply"

alias gm="git merge"

alias gr="git rebase"

alias gl="git log --oneline --decorate --graph"

alias gs="git show"

alias gd="git diff"

alias gdc="git diff --cached"

alias gbl="git blame"

alias gps="git push"

alias gpl="git pull"

Comments powered by Disqus