How to add symlinks to git repository on Windows?

风格不统一 提交于 2019-12-22 05:04:20

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/31232829/how-to-add-symlinks-to-git-repository-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!