开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜