Skip to content

Git打开提交或者拉取代码提示所属用户错误

fatal: detected dubious ownership in repository at 'C:/Users/zly/IdeaProjects/qqRot' 'C:/Users/zly/IdeaProjects/qqRot' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-138134134-1361373075-402239785-1001'

To add an exception for this directory, call:

解决办法

添加忽略文件目录

bash
git config --global --add safe.directory "*"