chore: git config

This commit is contained in:
Vasili Svirydau
2026-05-06 09:46:25 -07:00
parent 1d271b04fa
commit d2a2911f0a

23
dot_gitconfig.tmpl Normal file
View File

@@ -0,0 +1,23 @@
[user]
name = {{ .name | quote }}
email = {{ .email | quote }}
[push]
autoSetupRemote = true
[diff]
tool = bc3
[difftool "bc3"]
trustExitCode = true
[merge]
tool = bc3
[mergetool "bc3"]
trustExitCode = true
[pull]
rebase = true
[alias]
parent = "!git show-branch | grep '*' | grep -v \"$(git rev-parse --abbrev-ref HEAD)\" | head -n1 | sed 's/.*\\[\\(.*\\)\\].*/\\1/' | sed 's/[\\^~].*//' #"
[alias]
cop = "!f() { git checkout \"$(git parent)\"; }; f"
[alias]
children = "!f() { git branch -a --contains \"$(git rev-parse HEAD)\"; }; f"
[init]
defaultBranch = master