I have a central .gitignore
on my laptop and for each project that I create, I create a symbolic link to that central file so that I can keep a uniform policy across all of my projects.
All of my projects are like each other (technology-wise) and it makes sense to have a central .gitignore
to reduce the burden of maintenance.
However, recently I see this message:
warning: unable to access '.gitignore': Too many levels of symbolic links
And as I searched, it seems that from git 2.3 upwards they have decided to not support the symbolic link.
I have two questions. First, is there a way to force git to support symbolic links for .gitignore
? And why on Earth do they not support it anymore? Does it not make sense to reuse code? Is half of linux not reused through symbolic links?