我们的开发人员使用基于Windows和Unix的操作系统.因此,在Unix机器上创建的符号链接成为Windows开发人员的问题.在windows(msysgit)中,符号链接将转换为文本文件,其中包含指向其所指向文件的路径.相反,我想将符号链接转换为实际的Windows符号链接.
我需要的(更新的)解决方案是:
我没有实现这个,但我相信这是解决这个问题的可靠方法.
问题:
我尝试软重置我的分支以删除我不小心推送到 GitHub 的目录。软重置后,我仍然收到以下错误:
fatal: Unable to create '/Users/mprestemon/vagrant-local/www/national-fuel/public_html/wp-content/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
我发现另一篇 StackOverflow 文章说要使用以下命令删除 .git/index.lock:
rm -f ./.git/index.lock
当我运行该命令并尝试从另一个分支签出或拉取时,我现在得到这个 BUG:
BUG: unpack-trees.c:699: pos must point at the first entry in this directory
我不知道如何清理我的存储库并确保所有 git …
如果我尝试检查开发分支,我会收到此错误:
$ git checkout development
error: invalid path 'src/assets/svg-icon/exit.svg:Zone.Identifier'
谁能告诉我为什么我会得到这个?我正在使用 Windows-10。
我无法从 GitLab 上的存储库中提取新更改,因为我收到以下错误:
Cloning into 'X'...
remote: Enumerating objects: 450, done.
remote: Counting objects: 100% (331/331), done.
remote: Compressing objects: 100% (215/215), done.
remote: Total 450 (delta 145), reused 280 (delta 108), pack-reused 119 eceiving objects: 100% (450/450), 20.83 MiB | 20.82 MiB/s
Receiving objects: 100% (450/450), 26.61 MiB | 20.89 MiB/s, done.
Resolving deltas: 100% (158/158), done.
error: invalid path '\'
fatal: unable to checkout working tree
根据这个问题,我已经尝试过git config core.protectNTFS false,但没有任何改变。然后我尝试git config --system core.longpaths …