Skip to content

Instantly share code, notes, and snippets.

@dominicgs
Last active December 18, 2015 09:49
Show Gist options
  • Save dominicgs/5763902 to your computer and use it in GitHub Desktop.
Save dominicgs/5763902 to your computer and use it in GitHub Desktop.
My git config file - obviously the original has my name and email address in it.
[user]
email = email@example.com
name = John Doe
[color]
diff = auto
status = auto
branch = auto
interactive = auto
grep = auto
[alias]
co = checkout
w = whatchanged
graph = log --graph --oneline --decorate
logl = log --oneline
up = pull --rebase
# Credit to StackOverflow user 'muhqu' (https://stackoverflow.com/a/4408378)
permission-reset = '!git diff -p | grep -E "^(diff|old mode|new mode)" | sed -e "s/^old/NEW/;s/^new/old/;s/^NEW/new/" | git apply'
[status]
color = auto
[color "status"]
added = green
changed = red
untracked = cyan
[core]
editor = vim
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment