Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

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 config --bool core.symlinks false). Is there a simple solution to disable this behavior?

like image 250
John Himmelman Avatar asked Dec 02 '25 16:12

John Himmelman


1 Answers

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)

like image 114
Bruce Avatar answered Dec 04 '25 07:12

Bruce



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!