Photo by ajmexico

Post navigation

Linux, OSX, Tools

Useful Bash Aliases for GIT

Switching from SVN to GIT can be awkward especially if your used to SVN shortcuts like
svn co for svn checkout and
svn up for svn update

the solution is these nifty terminal aliases.

git status, git add, git commit, and git checkout are such common commands that it is useful to have abbreviations for them.

alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gca='git commit -a'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias gp='git pull'
alias push='git push'
alias gr='git rebase '
alias gm='git merge '

alias got='git '
alias get='git '

Source(s):

About Geraint Palmer

I am a front-end developer and software engineer living in Staffordshire, England. I love latte, good restaurants, photography, watching movies and occasionally snowboarding ( except when cartwheeling head first down the slope ;)