Skip to content

Instantly share code, notes, and snippets.

@mwesten
Forked from sanguis/.gitconfig
Created June 16, 2012 12:15
Show Gist options
  • Save mwesten/2941188 to your computer and use it in GitHub Desktop.
Save mwesten/2941188 to your computer and use it in GitHub Desktop.
my .gitconfig file minus my name and email
[color]
ui = on
[core]
whitespace= fix,-indent-with-non-tab,-indent-with-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[alias]
df = !git diff --no-prefix && git diff --staged --no-prefix
clear = reset --hard
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
co = checkout
con = checkout -b
ci = commit -am
br = branch
ls = branch -a
[mergetool]
keepBackup = FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment