错误:打开(“AppData/Local/Comms/UnistoreDB/USS.jtx”):权限被拒绝
·
问题:错误:打开(“AppData/Local/Comms/UnistoreDB/USS.jtx”):权限被拒绝
我用$ git add .
但它是打印:
error: open("AppData/Local/Comms/UnistoreDB/USS.jtx"): Permission
denied error: unable to index file
AppData/Local/Comms/UnistoreDB/USS.jtx fatal: adding files failed
如果我使用 run 在 Windows 10 pro 1703 中打开它,它会要求用另一个程序打开(上次它说由虚拟机打开 8210b_xxxx 我忘记了 x 上的数字是什么)
怎么了 ?
system ver.:windows pro 1703
antivirus:windows defender
git ver.:Git-2.15.1.2-64-bit
解答
听起来您在C:\users\yourLogin中定义了一个 git 存储库,这似乎很奇怪,不推荐使用。尝试使用git rev-parse --show-toplevel确认
无论如何,可能没有添加该文件的一个原因是另一个进程正在处理它。您可以使用Process Explorer进行检查(键入 Ctrl+F,然后查找USS.jtx)
但更重要的是,检查你的 Git repo 应该在哪里,因为它不应该在C:\users\yourLogin中。
更多推荐


所有评论(0)