Skip to content

Instantly share code, notes, and snippets.

@ninnypants
Created January 28, 2016 02:58
Show Gist options
  • Save ninnypants/c996dff82689494b89d8 to your computer and use it in GitHub Desktop.
Save ninnypants/c996dff82689494b89d8 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
le = log --oneline --decorate
dlc = diff --cached HEAD^
p = pull
pu = push
co = checkout
mnf = merge --no-ff
pt = push --tags
c = commit
tree = log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
s = status
d = diff
br = branch
last = log -1 HEAD
po = push -u
lt = describe --tags --abbrev=0
wd = diff --word-diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment