dotfiles/git/.gitconfig

95 lines
2 KiB
INI
Raw Normal View History

2023-01-13 10:17:52 +01:00
[advice]
addEmptyPathspec = false
addIgnoredFile = false
2023-06-07 09:44:58 +02:00
[alias]
jump = !/usr/share/git/git-jump/git-jump
# Based on https://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit
recent = "!rb() { \
git branch --all --color=always --sort=-committerdate \
--format='%(HEAD) %(color:bold green)%(committerdate:relative)%(color:reset)|%(color:yellow)%(refname:short)%(color:reset)|%(subject)' \
| head -n ${1:-15} | column -ts'|'; }; \
rb"
2024-04-18 15:52:28 +02:00
[branch]
sort = -committerdate
2023-01-13 10:17:52 +01:00
[blame]
# Mark any lines that have had a commit skipped using --ignore-rev with a `?`
markIgnoredLines = true
# Mark any lines that were added in a skipped commit and can not be attributed with a `*`
markUnblamableLines = true
[color]
ui = true
[commit]
cleanup = scissors
2023-01-13 10:17:52 +01:00
verbose = true
2016-03-07 17:31:28 +01:00
[core]
abbrev = 9
editor = nvim
excludesfile = ~/.config/git/ignore
[diff]
algorithm = histogram
colorMoved = zebra
colorMovedWS = allow-indentation-change
2024-02-07 10:22:34 +01:00
context = 10
interHunkContext = 10
submodule = log
tool = nvimdiff
[difftool]
prompt = false
trustExitCode = true
[difftool "nvimdiff"]
cmd = nvim -R -d $LOCAL $REMOTE
[difftool "difftastic"]
cmd = difft $LOCAL $REMOTE
[difftool "kitty"]
2023-01-13 10:17:52 +01:00
cmd = kitty +kitten diff $LOCAL $REMOTE
[fetch]
fsckObjects = true
2023-01-13 10:17:52 +01:00
prune = true
pruneTags = true
recurseSubmodules = true
2023-01-13 10:17:52 +01:00
[http]
sslVerify = false
[init]
defaultBranch = master
[log]
follow = true
[merge]
conflictstyle = zdiff3
ff = only
tool = nvimdiff1
[mergetool]
hideResolved = false
keepBackup = false
prompt = false
[mergetool "nvimdiff1"]
hideResolved = true
[pager]
difftool = true
2024-02-07 10:22:34 +01:00
[protocol "http"]
allow = never
[pull]
rebase = false
[push]
default = nothing
2023-01-13 10:17:52 +01:00
[rebase]
autosquash = true
autoStash = true
updateRefs = true
[receive]
fsckObjects = true
2023-01-13 10:17:52 +01:00
[sendemail]
smtpserver = /usr/bin/msmtp
2024-02-07 10:22:34 +01:00
[stash]
showPatch = true
[status]
submoduleSummary = true
[tag]
sort = -taggerdate
2024-02-07 10:22:34 +01:00
[transfer]
fsckObjects = true
2022-12-16 15:35:56 +01:00
[user]
2023-01-13 10:17:52 +01:00
name = Sanchayan Maity
email = me@sanchayanmaity.net
2023-01-13 10:17:52 +01:00
login = sanchayanmaity
2022-12-16 15:35:56 +01:00
signingkey = 6F6A0609C12038F3