How to add symlinks to git repository on Windows?
Asked Answered
J

1

7

I compile binaries for OS X using GitHub' s electron environment and want to add the output to a git repository.

I tried

git add .
error: readlink("sulu.app/Contents/Frameworks/Electron Framework.framework/Electron Framework"): Function not implemented
error: unable to index file sulu.app/Contents/Frameworks/Electron Framework.framework/Electron Framework
fatal: adding files failed

Any idea to work around this?

Jainism answered 5/7, 2015 at 17:1 Comment(2)
I'm not confident enough or motivated enough to submit a patch for git, but if anyone is interested most Windows these days support something equivalent to a symlink. Look into mklink /J symlink/path target/path. Notice that /J doesn't need admin permissions. I know it doesn't help you but hopefully someone will submit a patch.Pyrrhic
Possible duplicate of Git Symlinks in WindowsChenab
J
2

Windows command

mklink /H "Link_File_Path" "Target_File_Path"

Use above command to create a hard link for all your output files. That will work. I did similar stuff for git hooks.

Refer this link for more info about mklink http://ss64.com/nt/mklink.html

Jephthah answered 18/8, 2015 at 8:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.