Skip to content

Instantly share code, notes, and snippets.

@lukemorton
Created July 20, 2015 10:26
Show Gist options
  • Save lukemorton/b02a8d5199917713f0f5 to your computer and use it in GitHub Desktop.
Save lukemorton/b02a8d5199917713f0f5 to your computer and use it in GitHub Desktop.
Aliases for git
[alias]
st = status -sb
co = checkout
cp = cherry-pick
ci = commit
br = branch
sub = submodule
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
undo = reset HEAD^
p = !git stash && git pull --recurse-submodules && git stash pop
pp = !git p && git push
lsnc = log --pretty=format:"%h\\ %s\\ [%cn]" --decorate
y = log --author="Luke\\ Morton" --since="1\\ day\\ ago" --all --reverse --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s" --decorate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment