Git无法在Windows网络环境中进行Stage或提交SourceTree

问题描述 投票:4回答:1

我正在使用Atlassian SourceTree来管理一些git存储库,但是当我创建一个新的并尝试第一次添加新文件时(不确定它是获取帮助的必要信息),但这是我得到的错误消息当我尝试提交文件时:

git -c diff.mnemonicprefix=false -c core.quotepath=false add -f -- app/file.txt
error: unable to create temporary file: File exists
error: app/file.txt: failed to insert into database
error: unable to index file app/file.txt

fatal: adding files failed

Completed with errors, see above.

这有点烦人,因为它没有存储任何东西。

我在Novell / Windows环境下工作,所以它可能是一个权限错误,但我想如果我正在浏览网络并以我身份登录,那么SourceTree内部git程序肯定会存储并查看关于谁登录的网络。

如果我在本地使用源目录,它可以很好地工作,但它不能在共享路径上工作。

我们甚至尝试过使用直接CIFS路径和\ servername \ path。

windows git networking commit atlassian-sourcetree
1个回答
2
投票

作为一种解决方法(因为它可能与external user directories issue有关),您可以:

  • 在本地初始化和添加文件
  • 将本地存储克隆到目标外部共享路径。
© www.soinside.com 2019 - 2024. All rights reserved.