Skip to content

Instantly share code, notes, and snippets.

@yosriady
Created June 6, 2016 07:20
Show Gist options
  • Save yosriady/4721ffe6f6d491325901356a9465c388 to your computer and use it in GitHub Desktop.
Save yosriady/4721ffe6f6d491325901356a9465c388 to your computer and use it in GitHub Desktop.
[alias]
a = add . -A
st = status
cl = clone
ci = commit
c = commit -m
ca = commit --amend
br = branch
co = checkout
df = diff --word-diff
lg = 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
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
pull = pull --rebase
tree = log --oneline --graph --decorate --all
switch = !legit switch \"$@\"
branches = !legit branches
sprout = !legit sprout \"$@\"
unpublish = !legit unpublish \"$@\"
harvest = !legit harvest \"$@\"
sync = !legit sync \"$@\"
publish = !legit publish \"$@\"
graft = !legit graft \"$@\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment