2012-10-10 12:51:59 +00:00
|
|
|
[color]
|
2014-03-07 09:45:49 +00:00
|
|
|
ui = auto
|
2014-01-22 19:22:26 +00:00
|
|
|
|
2012-10-10 12:51:59 +00:00
|
|
|
[color "diff"]
|
2014-03-07 09:45:49 +00:00
|
|
|
meta = blue
|
|
|
|
frag = white
|
|
|
|
old = red bold
|
|
|
|
new = green bold
|
2014-05-08 09:52:48 +00:00
|
|
|
|
|
|
|
[help]
|
|
|
|
autocorrect = 1
|
|
|
|
|
2012-10-10 12:51:59 +00:00
|
|
|
[core]
|
2014-05-06 19:35:45 +00:00
|
|
|
# Force vim in foreground mode.
|
|
|
|
editor = vim -f
|
2014-03-07 09:45:49 +00:00
|
|
|
# http://stackoverflow.com/questions/136178/git-diff-handling-long-lines
|
|
|
|
# If doesn't work, try: pager = less -+$LESS -FRX
|
2022-01-06 17:42:28 +00:00
|
|
|
pager = less -RFX
|
|
|
|
# pager = diff-highlight | less -RFX
|
2017-12-08 17:36:39 +00:00
|
|
|
# pager = less -r
|
2014-03-07 09:45:49 +00:00
|
|
|
autocrlf = false
|
|
|
|
safecrlf = false
|
|
|
|
mergeoptions = --no-edit
|
|
|
|
excludesfile = ~/.gitignore
|
2014-05-13 11:41:37 +00:00
|
|
|
|
2012-10-10 12:51:59 +00:00
|
|
|
[alias]
|
2014-03-07 09:45:49 +00:00
|
|
|
a = add
|
2014-05-13 11:41:37 +00:00
|
|
|
ap = add --patch
|
2014-03-07 09:45:49 +00:00
|
|
|
b = branch
|
2014-05-13 11:41:37 +00:00
|
|
|
c = commit --verbose --signoff
|
|
|
|
cm = commit --verbose --signoff --message
|
2014-03-07 09:45:49 +00:00
|
|
|
co = checkout
|
2014-05-13 11:41:37 +00:00
|
|
|
d = diff
|
|
|
|
ds = diff --staged
|
2014-03-07 09:45:49 +00:00
|
|
|
l = log --graph --pretty=format:'%C(magenta)%h%C(blue)%d%Creset %s %C(blue bold)- %an, %ar%Creset'
|
|
|
|
ll = log --stat --abbrev-commit
|
2014-05-13 11:41:37 +00:00
|
|
|
r = rebase
|
|
|
|
s = status --short --branch
|
|
|
|
ua = reset HEAD
|
2014-03-07 09:45:49 +00:00
|
|
|
commerge = commit --no-edit
|
2014-05-13 11:41:37 +00:00
|
|
|
conflicts = diff --name-only --diff-filter=U
|
2012-10-10 12:51:59 +00:00
|
|
|
[push]
|
2014-05-08 06:35:56 +00:00
|
|
|
default = upstream
|
2012-10-10 12:51:59 +00:00
|
|
|
|
2013-03-01 11:49:46 +00:00
|
|
|
# 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
|
2013-10-31 13:01:42 +00:00
|
|
|
[url "git@github.com:jacobkiers/"]
|
2014-03-07 09:45:49 +00:00
|
|
|
insteadOf = "git://github.com/jacobkiers/"
|
2013-03-01 11:49:46 +00:00
|
|
|
|
2015-04-10 13:53:10 +00:00
|
|
|
[url "git@bitbucket.org:jacobkiers/"]
|
|
|
|
insteadOf = "https://bitbucket.org/jacobkiers/"
|
|
|
|
|
2012-10-10 12:51:59 +00:00
|
|
|
# URL shorthands
|
2015-04-10 13:53:10 +00:00
|
|
|
|
|
|
|
[url "git@bitbucket.org:"]
|
|
|
|
insteadOf = "bb:"
|
2012-10-10 12:51:59 +00:00
|
|
|
[url "git@github.com:"]
|
2014-03-07 09:45:49 +00:00
|
|
|
insteadOf = "gh:"
|
|
|
|
pushInsteadOf = "github:"
|
|
|
|
pushInsteadOf = "git://github.com/"
|
2012-10-10 12:51:59 +00:00
|
|
|
[url "git://github.com/"]
|
2014-03-07 09:45:49 +00:00
|
|
|
insteadOf = "github:"
|
2012-10-10 12:51:59 +00:00
|
|
|
[url "git@gist.github.com:"]
|
2014-03-07 09:45:49 +00:00
|
|
|
insteadOf = "gst:"
|
|
|
|
pushInsteadOf = "gist:"
|
|
|
|
pushInsteadOf = "git://gist.github.com/"
|
2012-10-10 12:51:59 +00:00
|
|
|
[url "git://gist.github.com/"]
|
2014-03-07 09:45:49 +00:00
|
|
|
insteadOf = "gist:"
|
2012-10-10 12:51:59 +00:00
|
|
|
|
2014-02-27 10:02:53 +00:00
|
|
|
[url "git@git.courtesycall.nl:"]
|
|
|
|
insteadOf = "gc:"
|
|
|
|
|
2013-02-24 19:24:42 +00:00
|
|
|
# DiffMerge
|
|
|
|
[merge]
|
2017-12-08 17:36:39 +00:00
|
|
|
ff = no
|
|
|
|
commit = no
|
2014-03-07 09:45:49 +00:00
|
|
|
tool = diffmerge
|
2013-02-24 19:24:42 +00:00
|
|
|
[mergetool "diffmerge"]
|
2014-03-07 09:45:49 +00:00
|
|
|
cmd = diffmerge --merge --result=$MERGED $LOCAL $BASE $REMOTE
|
|
|
|
trustExitCode = true
|
2013-02-24 19:24:42 +00:00
|
|
|
[diff]
|
2017-12-08 17:36:39 +00:00
|
|
|
algorithm = minimal
|
|
|
|
compationHeuristic = true
|
|
|
|
renames = true
|
2014-03-07 09:45:49 +00:00
|
|
|
tool = diffmerge
|
2013-02-24 19:24:42 +00:00
|
|
|
[difftool "diffmerge"]
|
2014-03-07 09:45:49 +00:00
|
|
|
cmd = diffmerge $LOCAL $REMOTE
|
2013-02-24 19:24:42 +00:00
|
|
|
|
2012-10-10 12:51:59 +00:00
|
|
|
# Include local settings
|
2012-11-27 14:11:07 +00:00
|
|
|
# Requires Git 1.7.10
|
2013-10-31 13:01:42 +00:00
|
|
|
# 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]
|
2014-03-07 09:45:49 +00:00
|
|
|
path = .gitlocal
|
2014-05-05 14:15:49 +00:00
|
|
|
|
|
|
|
[fetch]
|
|
|
|
prune = true
|
2015-05-12 10:07:08 +00:00
|
|
|
|
|
|
|
[init]
|
|
|
|
templatedir = ~/dotfiles/resources/git-template
|
2017-12-08 17:36:39 +00:00
|
|
|
[pull]
|
|
|
|
ff = yes
|
2022-01-06 17:42:28 +00:00
|
|
|
#[commit]
|
|
|
|
# gpgSign = true
|
|
|
|
[tag]
|
|
|
|
forceSignAnnotated = true
|
|
|
|
[user]
|
|
|
|
signingkey = 6652F0F4418231A7
|