繁体   English   中英

我该如何解决致命问题:无法访问“https://github.com/MTaha57/Build-Portfolio-.git/”:请求的 URL 返回错误:403

[英]How can i resolve fatal: unable to access 'https://github.com/MTaha57/Build-Portfolio-.git/': The requested URL returned error: 403

我在上传现有项目 git push -u origin master remote: Permission to MTaha57/Build-Portfolio-.git denied to infotaha98 时使用了这个命令

所以我认为这被拒绝了,因为我没有签署我的新帐户我通过使用此命令更改为新的 email

在此处输入图像描述git config --global user.email "my new email" 并再次运行最后一个命令并显示相同的错误

全局 email 不是问题——它只是装饰了您在本地进行的提交。 您需要更新 ssh 密钥或清除旧的 git 凭据。 If you run the command, git remote -v this will tell you if you need to either redo your ssh key or refresh your https credentials - based on the type of URL shown.

另一种可能性是您正在尝试推送到受保护的分支 - 但如果没有更多信息,则无法判断。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM