Skip to content

Instantly share code, notes, and snippets.

@sanguis
Last active June 2, 2017 14:41
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save sanguis/903720 to your computer and use it in GitHub Desktop.
Save sanguis/903720 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 -a
cim = commit -am
br = branch
ls = branch -a
[mergetool]
keepBackup = FALSE
[push]
default = upstream
@sanguis
Copy link
Author

sanguis commented May 25, 2011

something was wrong with the lg alias in older version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment