不同文件夹使用不同的Git用户

tee ~/.gitconfig <<EOF
[includeIf "gitdir:~/Desktop/Project/"]
  path = ~/Desktop/Project/.gitconfig
EOF

tee ~/Desktop/Project/.gitconfig <<EOF
[user]
  name = your_name
  email = your_mail
EOF
posted @ 2024-10-06 09:52  冰豆花  阅读(14)  评论(0)    收藏  举报