feat(git): switch to $XDG_CONFIG_HOME/git/

This commit is contained in:
Oliver Ladner 2024-09-20 07:58:51 +02:00
commit 21f499d6de
3 changed files with 41 additions and 32 deletions

36
.config/git/config Normal file
View file

@ -0,0 +1,36 @@
[core]
editor = nvim
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[credential]
helper = cache --timeout 43200
[diff]
tool = vimdiff
[include]
path = ~/.gitconfig.local
[http]
postBuffer = 524288000
version = HTTP/2
[pull]
rebase = false
[safe]
directory = /opt/homebrew
[init]
defaultBranch = main
[merge]
conflictstyle = diff3
# Set a correct user.name and user.email for work projects
[includeIf "gitdir:~/git/work/"]
path = ~/git/work/gitconfig
# Set a correct user.name and user.email for personal projects
[includeIf "gitdir:~/git/lugh/"]
path = ~/git/lugh/gitconfig

5
.config/git/ignore Normal file
View file

@ -0,0 +1,5 @@
# Global gitignore - things to ALWAYS ignore
.DS_Store
Thumbs.db
.vscode
.idea