Symlinks on windows?

NTFS file system has junction points, I think you may use them instead, You can use python win32 API module for that e.g. import win32file win32file.CreateSymbolicLink(fileSrc, fileTarget, 1) If you do not want to rely on win32API module, you can always use ctypes and directly call CreateSymbolicLink win32 API e.g. import ctypes kdll = ctypes.windll.LoadLibrary(“kernel32.dll”) … Read more

Enable native NTFS symbolic links for Cygwin

⸻⸻⸻  Short answer  ⸻⸻⸻ Define environment variable: CYGWIN=winsymlinks:nativestrict As pointed out by mwm you may also have to run bash as Administrator. ⸻⸻⸻  Long answer  ⸻⸻⸻ Default Cygwin symlinks are just regular files By default Cygwin creates text files as workaround for Windows symlink flaw. These files are not really symlinks. Almost all Windows programs … Read more

How can I get Git to follow symlinks?

What I did to add to get the files within a symlink into Git (I didn’t use a symlink but): sudo mount –bind SOURCEDIRECTORY TARGETDIRECTORY Do this command in the Git-managed directory. TARGETDIRECTORY has to be created before the SOURCEDIRECTORY is mounted into it. It works fine on Linux, but not on OS X! That trick … Read more

Git symbolic links in Windows

I was asking this exact same question a while back (not here, just in general), and ended up coming up with a very similar solution to OP’s proposition. I’ll post the solution I ended up using. But first I’ll provide direct answers to OP’s 3 questions: Q: “What, if any, downsides do you see to … Read more