Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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