feat: split git user identity by repo directory

Leave global name/email empty with useConfigOnly so unmatched repos cannot commit. Personal identity applies under ~/.dotfile, ~/code, and ~/.pouch; work identity stays in local ~/.gitconfig.work for ~/workrepo.
This commit is contained in:
2026-09-14 14:55:44 +08:00
parent 097fce7827
commit 0b04a4de50
4 changed files with 35 additions and 3 deletions
+4
View File
@@ -0,0 +1,4 @@
# 个人身份:~/.dotfile、~/code、~/.pouch(由 includeIf gitdir 加载)
[user]
name = laily
email = i@laily.net