首页 > 其他分享 >【git】报错unsafe repository xxx is owned by someone else解决方法

【git】报错unsafe repository xxx is owned by someone else解决方法

时间:2022-12-14 10:33:52浏览次数:83  
标签:www git repository -- global add 报错 config

  1. 忽略单个目录
git config --global --add safe.directory D:/www/your-project
git config --global --add safe.directory D:/www/other-project
  1. 忽略全部目录
git config --global --add safe.directory "*"
  1. 修改window文件夹的用户
    参考:https://www.morfans.cn/archives/3350

右键 属性 -> 安全 -> 高级

image

点击更改所有者,改为那些正常访问目录的所有者即可

image

  1. 修改Linux文件夹用户和组
    这个直接用命令chown -R uid:gid xxx

标签:www,git,repository,--,global,add,报错,config
From: https://www.cnblogs.com/janbar/p/16981416.html

相关文章