Somebody already asked how you can get git to follow symlinks. There was an answer for a symlinked directory, but not for a symlinked file. It was also ove
I have several different repositories and they all use a common set of files -- typically .h files. I only want one version of all the common files to exist, which is a common use case for links. I need git to keep the common contents of these files in each repository directory that needs those files. This only seems to work with hard links, but they aren't so great because when I checkout an earlier version in one of the repository directories, that directory gets an actual copy of the common files and no longer shares with the other repositories. So I have a shell script to restore the hard links, but this is pretty lame. Git needs an option to treat a soft link the same way gcc would: as a copy of what it's pointing to, rather than just a pointer. Maybe git could have a command which takes a list of soft links, and then treats them as copies of whatever they're pointing to.