Skip to content

Instantly share code, notes, and snippets.

@mmynsted
Created October 14, 2015 03:50
Show Gist options
  • Save mmynsted/a387c754d37c63c2e644 to your computer and use it in GitHub Desktop.
Save mmynsted/a387c754d37c63c2e644 to your computer and use it in GitHub Desktop.
co = checkout
br = branch
ci = commit
st = status -sb
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ls = log --stat --oneline
ld = log --pretty=format:'%C(auto) %h [%C(green)%ar%C(reset)] %C(blue) %cn %C(reset)%C(auto) %d %<|(5) %s' --graph --decorate --all
f = "!git ls-files | grep -i"
dl = "!git ll -1"
grep = grep -Ii
gra = "!f() { A=$(pwd) && TOPLEVEL=$(git rev-parse --show-toplevel) && cd $TOPLEVEL && git grep --full-name -In $1 | xargs -I{} echo $TOPLEVEL/{} && cd $A; }; f"
lasttag = describe --tags --abbrev=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment