0
点赞
收藏
分享

微信扫一扫

重装操作系统后 gitee报错:Failed to create Gitee Repository

夜空一星 2023-10-13 阅读 25

错误描述

重装系统后,提交项目代码到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中更改文件或文件夹的所有权 在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

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

在这里插入图片描述

单击确定按钮

举报

相关推荐

0 条评论