Skip to content

Instantly share code, notes, and snippets.

@tommyli
Created March 17, 2012 12:35
Show Gist options
  • Save tommyli/2058428 to your computer and use it in GitHub Desktop.
Save tommyli/2058428 to your computer and use it in GitHub Desktop.
Sample user git config file (placed under ~/.gitconfig)
[user]
name = Tommy Yim Li
email = tommy.li@firefire.co
[color]
ui = true
diff = auto
status = auto
branch = auto
[branch]
autosetuprebase = always
[core]
bare = false
logAllRefUpdates = true
autocrlf = input
editor = subl
[commit]
template = /Users/tommyli/.gitmessage.txt
[help]
format = html
[alias]
c = commit
y = pull
yy = pull --rebase
p = push
a = add
s = status
d = diff
co = checkout
b = branch
h = help
t = tag
l = log --pretty=format:'%C(yellow)%h%Creset by %Cgreen%cn%Creset, %C(cyan)%cr%Creset, message: %s' --graph
[github]
user = tommyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment