Skip to content

Instantly share code, notes, and snippets.

@wmfairuz
Created May 18, 2016 18:55
Show Gist options
  • Save wmfairuz/9e4ced18bb3b39e0be5ffff75b6931a9 to your computer and use it in GitHub Desktop.
Save wmfairuz/9e4ced18bb3b39e0be5ffff75b6931a9 to your computer and use it in GitHub Desktop.
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit
lg2 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -10
d = diff
dc = diff --cached
a = add
g = grep --break --heading --line-number
st = status
ci = commit -s -m
br = branch
co = checkout
df = diff
lgp = log -p
rb = rebase -i
pullsrb = !git stash save && git pull --rebase origin dev && git stash pop && echo 'Success!'
amend = commit --amend
stm = status --untracked=no
b = branch
ba = branch -a
pushc = push origin HEAD:refs/for/dev
ft = fetch -av
[core]
autocrlf = true
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[color]
ui = always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment