Skip to content

Instantly share code, notes, and snippets.

@jperras
Created July 31, 2010 18:03
Show Gist options
  • Save jperras/502434 to your computer and use it in GitHub Desktop.
Save jperras/502434 to your computer and use it in GitHub Desktop.
.gitconfig
[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
[user]
name = <Your Name Here>
email = <Your Email Address Here>
[status]
relativePaths = false
[core]
excludesfile = </Path/to/home/directory/.gitignore>
pager = less -FRSX
[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\"' -"
[github]
user = <Your User Name Here>
token = <Your token Here>
@jimiyash
Copy link

jimiyash commented Aug 2, 2010

very cool. I also use
co = checkout
ci = commit

because I am used to those svn aliases

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