Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何解决启动Github桌面(win10)错误:无法锁定配置文件,权限被拒绝_Github - Fatal编程技术网

如何解决启动Github桌面(win10)错误:无法锁定配置文件,权限被拒绝

如何解决启动Github桌面(win10)错误:无法锁定配置文件,权限被拒绝,github,Github,最近,每当我启动Github桌面时,我的Github桌面(Win10)开始显示以下警告 警告:运行C:\Users\li58\AppData\Local\GitHubDesktop\app-2.6.0\resources\app\git\mingw64\bin\git.exe'config'--global'--replace all''filter.lfs.clean''git lfs clean--%f''时出错:警告:无法访问'C:/WINDOWS/system32/config/syst

最近,每当我启动Github桌面时,我的Github桌面(Win10)开始显示以下警告

警告:运行C:\Users\li58\AppData\Local\GitHubDesktop\app-2.6.0\resources\app\git\mingw64\bin\git.exe'config'--global'--replace all''filter.lfs.clean''git lfs clean--%f''时出错:警告:无法访问'C:/WINDOWS/system32/config/systemprofile/.gitconfig':权限被拒绝 错误:无法锁定配置文件C:/WINDOWS/system32/config/systemprofile/.gitconfig:权限被拒绝“”退出状态255” 运行
git lfs install--force
重置git配置

以下是我尝试过但没有解决的问题:

  • 我已经完成了git lfs安装--force。它显示“Git LFS已初始化”。但我每次都会看到这个错误
  • 我还重新安装了github,问题仍然存在
  • 我在gitBash中尝试了
    git-config--system--unset-credential.helper
    ,它是作为admin打开的
有人有过同样的问题吗?有人能帮忙吗?非常感谢