repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
git/gitconfig
Raw[alias]
# `git log` with patches shown with difftastic.
dl = -c diff.external=difft log -p --ext-diff
# Show the most recent commit with difftastic.
ds = -c diff.external=difft show --ext-diff
# `git diff` with difftastic.
dft = -c diff.external=difft diff
ci = commit --all
st = status
[core]
editor = nvim
quotepath = false
autocrlf = false
pager = delta
safecrlf = false
symlinks = true
fscache = true
preloadIndex = true
fsmonitor = true
untrackedCache = true
attributesfile = .gitattributes
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[help]
format = html
# try to automatically correct mispelled git commands
autocorrect = 1
[color]
interactive = true
ui = auto
[rebase]
autoStash = true
updateRefs = true
[rerere]
enabled = true
autoupdate = true
[diff]
colorMoved = default
tool = difftastic
[difftool]
prompt = false
[difftool "meld"]
cmd = "meld \"$LOCAL\" \"$REMOTE\""
[difftool "difftastic"]
cmd = "difft \"$LOCAL\" \"$REMOTE\""
[pager]
difftool = true
[merge]
tool = vim
conflictstyle = zdiff3
[mergetool]
keepBackup = false
prompt = false
[merge "mergiraf"]
name = mergiraf
driver = mergiraf merge --git %O %A %B -s %S -x %X -y %Y -p %P -l %L
[mergetool "vim"]
cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
[branch]
sort = -committerdate
[tag]
sort = version:refname
[fetch]
prune = true
pruneTags = true
all = true
[push]
autoSetupRemote = true
default = "upstream"
followTags = true
[pull]
rebase = true
[interactive]
diffFilter = delta --color-only
[delta]
side-by-side = true
line-numbers = true
decorations = true
navigate = true
syntax-theme = none
[interactive]
diffFilter = delta --color-only
[init]
defaultBranch = trunk
[commit]
verbose = true
[difftool "difftastic"]
# See `man git-difftool` for a description of MERGED, LOCAL and REMOTE.
cmd = difft "$MERGED" "$LOCAL" "abcdef1" "100644" "$REMOTE" "abcdef2" "100644"
[difftool]
# Run the difftool immediately, don't ask 'are you sure' each time.
prompt = false
[pager]
# Use a pager if the difftool output is larger than one screenful,
# consistent with the behaviour of `git diff`.
difftool = true
[diff]
# Set difftastic as the default difftool, so we don't need to specify
# `-t difftastic` every time.
tool = difftastic
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
# In order to have host-specific configuration, I include additional settings here.
# On each host a different file might be symlinked into '.gitconfig.include'.
[include]
path = .gitconfig.include