如何在Windows上的git存储库中添加符号链接? [英] How to add symlinks to git repository on Windows?
本文介绍了如何在Windows上的git存储库中添加符号链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用GitHub的电子环境编译OS X的二进制文件,并希望将输出添加到git存储库中.
I compile binaries for OS X using GitHub' s electron environment and want to add the output to a git repository.
我尝试了
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
有任何解决方法吗?
推荐答案
Windows命令
mklink /H "Link_File_Path" "Target_File_Path"
使用上述命令为所有输出文件创建一个硬链接.那可行.我为git hook做过类似的事情.
Use above command to create a hard link for all your output files. That will work. I did similar stuff for git hooks.
请参阅此链接,以获取有关mklink
http://ss64.com/nt/mklink的更多信息. html
Refer this link for more info about mklink
http://ss64.com/nt/mklink.html
这篇关于如何在Windows上的git存储库中添加符号链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文