重装操作系统后 gitee报错:Failed to create Gitee Repository
  J0tQqlYbt0QD 2023年11月02日 109 0

错误描述

重装系统后,提交项目代码到gitee程序报错:

11:21	Failed to create Gitee Repository
			detected dubious ownership in repository at 'E:/Workspaces/SpringBoot/saToken'
			'E:/Workspaces/SpringBoot/saToken' is owned by:
			'S-1-5-21-1301660696-4210872564-2794906377-1001'
			but the current user is:
			'S-1-5-21-1575586477-2791995752-1942928040-1001'
			To add an exception for this directory, call:
			git config --global --add safe.directory E:/Workspaces/SpringBoot/saToken

如下图所示: 在这里插入图片描述

原因

文件所属用户不是当前用户

解决方案

在Windows中更改文件或文件夹的所有权 在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述 单击确定按钮,再次单击确定按钮

在这里插入图片描述

单击确定按钮

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
J0tQqlYbt0QD