我最近升级到git版本2.33.1.windows.1
但是 includeif
看起来并没有起作用。
有其他人能否确认?我记不清我的先前 git 版本是什么。
我的配置如下:
.gitconfig
[user]
name = crowne
email = crowne@fakemail.com
[includeIf "gitdir:E:/work/**"]
path = ~/.gitconfig_work
.gitconfig_work
[user]
name = name.surname
email = name.surname@work.com
我之所以升级是因为在
E:/work/
的子目录嵌套超过一个目录时,includeif
不会递归生效。自升级后,它似乎根本没有生效。
只有以下位置的条目会显示:
>git config -l --show-origin
- C:/Program Files/Git/etc/gitconfig
- C:/Users/crowne/.gitconfig
- C:/Users/crowne/.gitconfig_work
[includeIf "gitdir/i:E:/work"]
(不区分大小写,无**
)。 - phd