aboutsummaryrefslogtreecommitdiff
path: root/vcs/gitconfig.ini
diff options
context:
space:
mode:
Diffstat (limited to 'vcs/gitconfig.ini')
-rw-r--r--vcs/gitconfig.ini70
1 files changed, 70 insertions, 0 deletions
diff --git a/vcs/gitconfig.ini b/vcs/gitconfig.ini
new file mode 100644
index 00000000..c4c4a517
--- /dev/null
+++ b/vcs/gitconfig.ini
@@ -0,0 +1,70 @@
+[user]
+ email = eu@euandre.org
+ name = EuAndreh
+ signingkey = 81F90EC3CD356060
+[transfer]
+ # https://matthiasbussonnier.com/posts/33-sign-commits-on-github.md.html
+ fsckobjects = true
+[log]
+ # https://git-scm.com/docs/git-config#git-config-logshowSignature
+ # showSignature = true
+[diff "sqlite3"]
+ # drops a db file into sqlite3 and runs .dump before any diff comparisons
+ binary = true
+ textconv = "echo .dump | sqlite3"
+[core]
+ editor = vi
+ excludesfile = ~/.gitignore_global
+
+ # https://stackoverflow.com/questions/5834014/lf-will-be-replaced-by-crlf-in-git-what-is-that-and-is-it-important#5834094
+ # https://help.github.com/articles/dealing-with-line-endings/
+ autocrlf = input
+ attributesfile = ~/.gitattributes
+[push]
+ # https://stackoverflow.com/a/22933955
+ default = current
+[filter "lfs"]
+ clean = git-lfs clean -- %f
+ smudge = git-lfs smudge -- %f
+ process = git-lfs filter-process
+ required = true
+ fetchrecentalways = true
+ fetchrecentrefsdays = 15
+ fetchrecentcommitsdays = 7
+ fetchrecentremoterefs = true
+ followTags = true
+[alias]
+ sha = rev-parse HEAD
+ sha7 = ! git sha | head -c 7
+ prune-branches = !git branch --merged | grep -v main | xargs git branch -d
+ sync = !git annex sync s3 && git annex sync origin
+ tarball = !git-tarball.sh
+[annex]
+ gnupg-options = --no-tty
+ gnupg-decrypt-options = --no-tty
+ autocommit = false
+ synccontent = true
+ genmetadata = true
+[commit]
+ gpgsign = true
+[fetch]
+ prune = true
+[pack]
+ packSizeLimit = 2g
+[pull]
+ rebase = false
+[sendemail]
+ assume8bitEncoding = UTF-8
+ smtpuser = eu@euandre.org
+ smtpserver = box.euandre.org
+ smtpencryption = tls
+ smtpserverport = 587
+ annotate = yes
+ confirm = never
+[include]
+ path = ~/annex/secret/Git/gitconfig.ini
+[init]
+ defaultBranch = main
+[tar "tar.xz"]
+ command = xz -c
+# git config format.signOff yes