dotfiles/tilde/gitconfig

71 lines
1.7 KiB
Plaintext
Raw Normal View History

2012-10-10 12:51:59 +00:00
[color]
ui = auto
[color "diff"]
2012-11-27 14:10:41 +00:00
meta = blue
frag = white
2012-10-10 12:51:59 +00:00
old = red bold
2012-11-27 14:10:41 +00:00
new = green bold
2012-10-10 12:51:59 +00:00
[core]
editor = vim
2012-10-10 12:51:59 +00:00
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines
# If doesn't work, try: pager = less -+$LESS -FRX
pager = less -r
2013-02-19 20:08:28 +00:00
autocrlf = false
2012-11-09 08:33:26 +00:00
safecrlf = false
mergeoptions = --no-edit
2012-10-10 12:51:59 +00:00
excludesfile = ~/.gitignore
[alias]
a = add
ua = reset HEAD
b = branch
c = commit
ca = commit -a
2012-12-06 20:55:32 +00:00
cm = commit -m
2012-10-10 12:51:59 +00:00
cam = commit -am
co = checkout
d = diff --color-words
s = status -sb
l = log --graph --pretty=format:'%C(magenta)%h%C(blue)%d%Creset %s %C(blue bold)- %an, %ar%Creset'
ll = log --stat --abbrev-commit
2013-02-12 06:03:39 +00:00
conflicts = diff --name-only --diff-filter=U
commerge = commit --no-edit
2012-10-10 12:51:59 +00:00
[push]
default = current
# Any GitHub repo with my username should be checked out r/w by default
# http://rentzsch.tumblr.com/post/564806957/public-but-hackable-git-submodules
[url "git@github.com:jacobkiers/"]
insteadOf = "git://github.com/jacobkiers/"
2012-10-10 12:51:59 +00:00
# URL shorthands
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
2013-02-24 19:24:42 +00:00
# DiffMerge
[merge]
tool = diffmerge
[mergetool "diffmerge"]
cmd = diffmerge --merge --result=$MERGED $LOCAL $BASE $REMOTE
trustExitCode = true
[diff]
tool = diffmerge
[difftool "diffmerge"]
cmd = diffmerge $LOCAL $REMOTE
2012-10-10 12:51:59 +00:00
# Include local settings
# Requires Git 1.7.10
# git config -f ~/.gitlocal user.email "jacob@jacobkiers.net"
# git config -f ~/.gitlocal user.name "Jacob Kiers"
2012-10-10 12:51:59 +00:00
[include]
path = .gitlocal