Is it possible to link directories in git?
- by Andreas Selenwall
I will start with a simplified example describing my intent.
I have a repository my-rep.git containing two directories, src and deploy. In src I have my source code (NodeJS code, but that doesn't matter), and in deploy I want to keep my deploy configuration.
So for example if I have a project, projectA, then the structure should look like this,
my-rep.git/src/projectA
my-rep.git/deploy/projectA/dotcloud.yml
my-rep.git/deploy/projectA/src
Now to my question. I want the source code in projectA to be available in the deploy directory for dotcloud. Is there any way I can make my-rep.git/deploy/projectA/src point to my-rep.git/src/projectA, that is, so when I do a git pull in deploy it will automatically pull the my-rep.git/deploy/projectA/src.
It must be supported in git, symbolic linux links won't work as some developers in my team work in Windows.