我正在使用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。
作为一种解决方法(因为它可能与external user directories issue有关),您可以: