开发人员使用Windows和基于Unix操作系统的混合。因此,在Unix机器上创建的符号链接成为Windows开发人员的一个问题。在windows(Msysgit)中,符号链接被转换为文本文件,其中包含指向的文件的路径。
必须解决的办法是:
发布于 2018-01-02 07:29:55
Windows和基于Unix的主机、存储库和子模块混合在一起,有许多git符号链接,并且在MsysGit的发布版本中没有本地支持,解决方案如下:
在Windows上创建Git符号
用NTFS硬链+结取代git符号
在Windows上恢复Git符号链接
1. Can only be run from the root of the repo, else, weirdness happens...
2. Tab-based auto-completion is broken when typing out one of these aliases
3. If people forget to `git checkout-symlinks` before doing something like `git add -A`, they could **pollute the repo!**
参考资料:
https://stackoverflow.com/questions/-100005204
复制相似问题