Skip to content

Instantly share code, notes, and snippets.

@danmactough
Created February 26, 2014 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmactough/9235302 to your computer and use it in GitHub Desktop.
Save danmactough/9235302 to your computer and use it in GitHub Desktop.
some git aliases
alias psm='ps axo pid,pcpu,pmem,rss,vsz,command'
# ^^ Not git, but awesome
alias ga="git add"
alias gb="git branch"
alias gba="git branch -a"
alias gbd="git branch -D"
alias gca="git commit -a -m"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gcp="git cherry-pick"
alias gd="git diff"
alias gds="git diff --stat"
alias gl="git log --pretty='format:%Cgreen%h%Creset %an - %s' --graph"
alias gm="git merge --no-ff"
alias gpom="git pull origin master"
alias gp="git push"
alias gpt="git push --tags"
alias gra="git rebase --abort"
alias grc="git rebase --continue"
alias grh="git reset --hard"
alias gst="git status"
alias gcd='cd "`git rev-parse --show-toplevel`"'
[alias]
this = rev-parse --abbrev-ref HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment