From d2a2911f0af597da5c49901f10a7dcc052adbdfe Mon Sep 17 00:00:00 2001 From: Vasili Svirydau Date: Wed, 6 May 2026 09:46:25 -0700 Subject: [PATCH] chore: git config --- dot_gitconfig.tmpl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dot_gitconfig.tmpl diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl new file mode 100644 index 0000000..9f37792 --- /dev/null +++ b/dot_gitconfig.tmpl @@ -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