解决Git提交更新更改时出错: detected dubious ownership in repository at ...

问题背景

Git提交更新更改时出错: detected dubious ownership in repository at ... but the current user is: ... To add an exception for this directory, call:

解决方案

通常是项目文件夹权限主不同导致的,只需在该文件夹下Git Bash,执行以下命令

bash 复制代码
git config --global --add safe.directory "*"
相关推荐
our_times18 小时前
# Git 高频命令实战指南:从日常开发到进阶协作
git
PBitW19 小时前
git 中容易遗忘的点 (二) ⚡⚡⚡
前端·git·面试
PBitW19 小时前
git 中容易遗忘的点 (三) 🚀🚀🚀
前端·git·面试
郑州光合科技余经理1 天前
家政预约小程序后端源码深度剖析:支付回调实战
java·开发语言·前端·git·小程序·架构·php
北极糊的狐1 天前
钉钉小程序 Git 版本管理完整流程
git·小程序·钉钉
Fzuim1 天前
当 AI 也成为提交者:ThinkFlow 的 Git 提交规范,是怎么定的
git·agent·thinkflow
CodexDave2 天前
数据库连接池耗尽:排查顺序与三层兜底
服务器·前端·数据库·git·云原生·容器·kubernetes
乐观的Terry2 天前
5、发布系统-Git 集成
大数据·git·elasticsearch
不怕犯错,就怕不做2 天前
GIT的简单打patch应用format-patch and git am
linux·git·全文检索
Byron Loong2 天前
【Git】如何检查 Ubuntu 系统上 gitLab 是否开启
git·ubuntu·gitlab