git添加权限被拒绝Windows 10

git添加权限被拒绝Windows 10,git,Git,当我运行git add时。 然后是以下消息: 错误:打开(“~$myfile.pptx”):权限被拒绝 错误:无法索引文件~$myfile.pptx 致命:添加文件失败 所以我 运行Icacls myfile.pptx/grant user:(F,WD) 但仍然存在错误 如何更改权限?~$myfile.pptx是与powerpoint文件myfile.pptx分开的文件 此时,git status将不再显示该文件,并且git add.将不再尝试提交该文件 ~$myfile.pptx!=myfi

当我运行git add时。

然后是以下消息:

错误:打开(“~$myfile.pptx”):权限被拒绝

错误:无法索引文件~$myfile.pptx

致命:添加文件失败

所以我 运行
Icacls myfile.pptx/grant user:(F,WD)

但仍然存在错误


如何更改权限?

~$myfile.pptx
是与powerpoint文件
myfile.pptx
分开的文件

此时,
git status
将不再显示该文件,并且
git add.
将不再尝试提交该文件


~$myfile.pptx
!=<代码>myfile.pptx。一个可能是带锁的临时文件?换句话说,不要
git add.
,而是尝试只添加特定的文件。
~$*