Error updating changes Unsafe repository解决办法
问题描述
在Android Studio中打开项目,报错:
Error updating changes: Unsafe repository (`project name` is owned by someone else). To add an exception to this directory, call : git config --global --add safe.directory ...
解决办法
在命令行中输入以下命令,将目录添加到信任列表:
git config --global --add safe.directory '你的工程目录'
原因分析
git为解决CVE-2022-24765漏洞,在2.35.2及之后的版本更改了目前权限安全策略
评论区