Symbolic link does not work in Git over Windows

I have a repo called Base and another repo called Project. They are cloned in C:\Company\Base and C:\Company\Project.

I use mklink C:\Copmany\Project\BuildScript.bat C:\Company\Base\BuildScript.bat to create a symbolic link.

Then I push this change:

 cd C:\Company\Project git add . git commit -m "adding symbolic link" git push

And I can see in GitHub that the BuildScript.bat is a symbolic link.

I can also verify it using dir /AL /S C:\Company\Project.

However, when I clone this repository on another PC, or in another directory on my own PC, that symbolic link is not a link anymore.

What should I do?

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like