Skip to content

Instantly share code, notes, and snippets.

@bladeofsteel
Created October 22, 2011 19:17
Show Gist options
  • Save bladeofsteel/1306381 to your computer and use it in GitHub Desktop.
Save bladeofsteel/1306381 to your computer and use it in GitHub Desktop.
# git
alias gl='git pull'
alias glom='git pull origin master'
alias gp='git push'
alias gpom='git push origin master'
alias gd='git diff'
alias gc='git commit -m'
alias gca='git commit -a -m'
alias gco='git checkout'
alias gb='git branch'
alias gs='git status'
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
alias g="git"
alias gll="git log"
alias grma='git ls-files --deleted | xargs git rm'
####
[alias]
co = checkout
br = branch
ci = commit
st = status
last = log -1 HEAD
unstage = reset HEAD --
changes=diff --name-status -r
diffstat=diff --stat -r
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
type = cat-file -t
dump = cat-file -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment