Pergunta

There is server running under CentOS with php-fpm and nginx on aboard. Two projects are hosted, one of them is primary, the second contains half of the primary project as symlinks and part corresponding to itself. Both projects are in git repos. The primary project works correct under Linux and Windows machines after cloning the repo. But the second project contains symlinks and it doesn't work properly.

I don't know what to do. It's important to save the symlinks, but how should we work with the second project on Windows? Some hooks with git (replace symlinks with files before pull)?

Foi útil?

Solução

git converts symlinks to text files on Windows, since symlinks are available only on *nix environments, and msysgit doesn't take care of them by default.

You can create a post-commit hook to workaround them.

Check answers on git symlinks in windows, specifically this one where a user has given steps to handle the scenario.

Outras dicas

You are looking for git submodules: http://git-scm.com/docs/git-submodule

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top