Using symlinks between two projects on git

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)?

  • How do I fork multiple projects into one repository with git?
  • Unable to auto Merge Git Pull request :: No Conflict
  • How can I make it so git rejects pushing code that won't compile?
  • How does one push from NTFS (desktop) to FAT32 (usb)?
  • Deploying Ghost 0.4.2 to Azure Site using Git Deploy
  • GitForWindows keeps asking for OpenSSH password (Wish Application)
  • YAML parser from bash
  • ignoring merges in git
  • git: how to sync to latest revision
  • SSH config with multiple keys for multiple gitlab user accounts
  • Importing multiple maven projects from git into eclipse
  • Consistent tagging across multiple projects in separate Git repositories
  • 2 Solutions collect form web for “Using symlinks between two projects on git”

    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.

    You are looking for git submodules:

    Git Baby is a git and github fan, let's start git clone.