Skip to content

Instantly share code, notes, and snippets.

@tzhenghao
Created February 23, 2018 01:09
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 tzhenghao/c9b9a926c3018fcfc2d4fc477d407ffc to your computer and use it in GitHub Desktop.
Save tzhenghao/c9b9a926c3018fcfc2d4fc477d407ffc to your computer and use it in GitHub Desktop.
My Git configs
# This is Git's per-user configuration file.
[user]
name = tzhenghao
email = tanzhao@umich.edu
[alias]
all = add .
cl = clone
co = checkout
cob = checkout -b
com = commit -m
df = diff
dfw = diff --word-diff
glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
lg = log
prune = fetch --prune
rb = rebase
rst = reset
rstall = reset HEAD .
st = status
stats = shortlog -sn
sth = stash
u = add -u
undo = reset --soft HEAD^
[diff]
tool = icdiff
[difftool]
prompt = false
[difftool "icdiff"]
cmd = /usr/local/bin/icdiff --line-numbers $LOCAL $REMOTE
[color "status"]
added = green
changed = yellow bold
untracked = red bold
[transfer]
fsckobjects = true
[fetch]
fsckobjects = true
[receive]
fsckobjects = true
[push]
followTags = true
[status]
showUntrackedFiles = all
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment