git 不同目录用不同的配置

https://nicknisi.com/posts/git-includeif/

# inside of ~/.gitconfig
[includeIf "gitdir:~/work/"]
  path = ~/.gitconfig-work
[includeIf "gitdir:~/oss/"]
  path = ~/.gitconfig-oss
posted @ 2024-10-22 13:57  南风--  阅读(3)  评论(0编辑  收藏  举报