chore: git config
This commit is contained in:
23
dot_gitconfig.tmpl
Normal file
23
dot_gitconfig.tmpl
Normal 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
|
||||||
Reference in New Issue
Block a user