summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-01-26 23:24:06 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-01-26 23:24:06 +0800
commit9db5d3ab14e26c6a390e3fffdee9c2e6d79aeeb0 (patch)
tree11c2db77e05885eda75f5dc2f023393b7e6706cb
parentf559de0d6776c2ca0da21d674ad5550dc4bb1d89 (diff)
init: gitconfig
-rw-r--r--.gitconfig19
1 files changed, 19 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
new file mode 100644
index 00000000..e506c94b
--- /dev/null
+++ b/.gitconfig
@@ -0,0 +1,19 @@
+[user]
+ name = littleblack111
+ email = littleblack11111@gmail.com
+[init]
+ defaultBranch = main
+[push]
+ autoSetupRemote = true
+[commit]
+ gpgsign = true
+[alias]
+ permission-reset = !git diff -p -R --no-ext-diff --no-color --diff-filter=M | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply
+[merge]
+ ff = false
+[credential "https://github.com"]
+ helper =
+ helper = !/usr/bin/gh auth git-credential
+[credential "https://gist.github.com"]
+ helper =
+ helper = !/usr/bin/gh auth git-credential