Skip to content

Instantly share code, notes, and snippets.

@gustavohenrique
Last active December 12, 2015 03:28
Show Gist options
  • Save gustavohenrique/4707054 to your computer and use it in GitHub Desktop.
Save gustavohenrique/4707054 to your computer and use it in GitHub Desktop.
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status -sb
ci = commit
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
lo = log --graph --pretty=format:'%Cred%h%Creset %Cblue[%an]%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
wdiff = diff --word-diff
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
[user]
name = Gustavo Henrique
email = gustavo@gustavohenrique.net
[push]
default = current
[rerere]
enabled = true
[help]
format = web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment