Skip to content

Instantly share code, notes, and snippets.

@dogmatic69
Created October 11, 2010 00:22
Show Gist options
  • Save dogmatic69/619755 to your computer and use it in GitHub Desktop.
Save dogmatic69/619755 to your computer and use it in GitHub Desktop.
my git config file, if you want to use it remember to change your username and email address
[color]
diff = auto
status = auto
branch = auto
[color "branch"]
current = yellow reverse
local = yellow
[color "diff"]
meta = yellow
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green reverse
changed = green bold
untracked = cyan
delete
nobranch = red white bold
[user]
name = dogmatic69
email = dogmatic69@gmail.com
[status]
relativePaths = false
[core]
pager = less -FRSX
[alias]
d = diff
s = status -s
dc = diff --cached
lc = log ORIG_HEAD.. --stat --no-merges
gl = log --decorate --stat --graph --pretty=format:'%C(yellow)%h%Creset (%ar - %Cred%an%Creset), %s%n'
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
prune-all = !git remote | xargs -n 1 git remote prune
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
au = update-index --assume-unchanged webroot/index.php plugins/empty tmp/cache/blog/empty tmp/cache/cms/empty tmp/cache/core/empty tmp/cache/models/empty tmp/cache/newsletter/empty tmp/cache/persistent/empty tmp/cache/views/empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment