Created
February 26, 2014 18:23
-
-
Save danmactough/9235302 to your computer and use it in GitHub Desktop.
some git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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