开发者

Git / Windows - How do I stop git from following symbolic links?

开发者 https://www.devze.com 2023-02-22 11:46 出处:网络
I\'m trying to find a way to disable git from following symbolic links on Windows 7 while adding/committing files the repo. I\'ve tried setting config.symlinks to false (git c开发者_运维问答onfig --bo

I'm trying to find a way to disable git from following symbolic links on Windows 7 while adding/committing files the repo. I've tried setting config.symlinks to false (git c开发者_运维问答onfig --bool core.symlinks false). Is there a simple solution to disable this behavior?


AFAIK, you can't easily do that on windows. However, you can simply modify your .git/info/exclude file to exclude this folder. It's more a workaround, but as you're using only one folder, it will work well (I've been using that for build folder, which I don't want to pollute my git status)

0

精彩评论

暂无评论...
验证码 换一张
取 消