Is it possible to link directories in git?

Posted by Andreas Selenwall on Stack Overflow See other posts from Stack Overflow or by Andreas Selenwall
Published on 2012-10-31T15:38:59Z Indexed on 2012/10/31 23:00 UTC
Read the original article Hit count: 231

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.

© Stack Overflow or respective owner

Related posts about git

Related posts about version-control