Skip to content

Instantly share code, notes, and snippets.

@predominant
Created March 14, 2012 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save predominant/2036415 to your computer and use it in GitHub Desktop.
Save predominant/2036415 to your computer and use it in GitHub Desktop.
Git Configuration
[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 = yellow
changed = green
untracked = cyan
[status]
relativePaths = false
[core]
excludesfile = </Path/to/home/directory/.gitignore>
pager = less -FRSX
ignorecase = false
[alias]
d = diff
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'
st = status -sb
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\"' -"
[user]
name = NAME
email = EMAIL
[github]
user = USERNAME
token = TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment