Skip to content

Instantly share code, notes, and snippets.

@we11adam
Created May 3, 2013 09:55
Show Gist options
  • Save we11adam/5508279 to your computer and use it in GitHub Desktop.
Save we11adam/5508279 to your computer and use it in GitHub Desktop.
My git aliases
# git
alias gca="git commit -a"
alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gd="git diff | mate"
alias ga="git add"
alias gbd="git branch -D"
alias gst="git status"
alias gca="git commit -a -m"
alias gm="git merge --no-ff"
alias gpt="git push --tags"
alias gp="git push"
alias grh="git reset --hard"
alias gb="git branch"
alias gcob="git checkout -b"
alias gco="git checkout"
alias gba="git branch -a"
alias gcp="git cherry-pick"
alias gpom="git pull origin master"
alias gcd='cd "`git rev-parse --show-toplevel`"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment