I need to make a hard link to a directory in OS X, but I'm running Snow Leopard 10.6.x, so some options that worked no longer do. Any suggestions?
Note: I'm using this to get the same source in multiple GIT repositories.
Hard links to directories were added to HFS+ specifically to support Time Machine backups. However, most utilities do not expect them, and you should probably avoid using them yourself.
It sounds like you might be in a situation where you would benefit from using Git submodules. A submodule allows one Git repository to maintain a link to another repository. For example if your project builds a copy of libcoolstuff as part of it's own build, your directory might look like this:
In this case, you might want to have libcoolstuff be a submodule:
This will create a subdirectory called
In your situation, perhaps you have a project which you want to become a part of multiple other projects, and stay current with their development. This will let you do that, as long as all the projects are maintained in their own Git repos.