侧边栏壁纸
博主头像
noerror

虚灵不寐,众理具而万事出。

  • 累计撰写 239 篇文章
  • 累计创建 9 个标签
  • 累计收到 2 条评论
标签搜索

目 录CONTENT

文章目录

Error updating changes Unsafe repository解决办法

noerror
2022-09-17 / 0 评论 / 0 点赞 / 442 阅读 / 125 字 / 正在检测是否收录...

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及之后的版本更改了目前权限安全策略

0

评论区