gpt4 book ai didi

git - 如何在 Windows 上将符号链接(symbolic link)添加到 git 存储库?

转载 作者:太空狗 更新时间:2023-10-29 13:03:32 26 4
gpt4 key购买 nike

我使用 GitHub 的电子环境为 OS X 编译二进制文件,并想将输出添加到 git 存储库。

我试过了

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"

使用上面的命令为所有输出文件创建一个硬链接(hard link)。那可行。我为 git hooks 做了类似的事情。

有关mklink 的更多信息,请参阅此链接http://ss64.com/nt/mklink.html

关于git - 如何在 Windows 上将符号链接(symbolic link)添加到 git 存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31232829/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com