Skip to content

Instantly share code, notes, and snippets.

@kacy
Last active December 15, 2015 09:39
Show Gist options
  • Save kacy/5239916 to your computer and use it in GitHub Desktop.
Save kacy/5239916 to your computer and use it in GitHub Desktop.
my gitconfig file
[user]
name = <yourname>
email = <youremail>
[core]
excludesfile = ~/.gitignore
whitespace = fix,space-before-tab,tab-in-indent,trailing-space
quotepath = false
trustctime = false
[alias]
co = checkout
st = status
ci = commit
a = add
b = branch
d = diff
dc = diff --cached
l = log
pl = pull
ph = push
ps = push
lg = "!git log --all --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-80s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"
[apply]
whitespace = nowarn
[color]
ui = always
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[github]
user = <yourgithubname>
[difftool]
prompt = false
[merge]
;tool = opendiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment