无法推送提交 [英] Unable to push commits

查看:111
本文介绍了无法推送提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将最近的提交推送到github上的中央存储库,但是拒绝访问我自己的存储库。我该怎么做才能更改或覆盖设置?

  frameworks / Semantic-UI $ sudo git push 
https://github.com':team@everest.software
'https://team@everest.software@github.com'的密码:
remote:Semantic-Org / Semantic-的权限UI.git拒绝使用Everest软件。
致命:无法访问 https://github.com/Semantic-Org/Semantic-UI.git/:
请求的URL返回错误:403


解决方案

作为GitHub存储库的用户名不应是电子邮件地址,而应是实际的GitHub帐户用户名


'https://github.com'的用户名: team@everest.software aUSername


当一个






第二,该用户名应与您要推送到的存储库的所有者名匹配:

  Semantic-Org / Semantic-UI.git 

我会假设你r GitHub用户名帐户不是 em 语义组织,即:




  • 您不是所有者(并且可能不是所有者)不是协作者)在Semantic-UI.git存储库上

  • 您不能直接推送到您不拥有的存储库



如果要回退到 Semantic-UI.git ,则需要先 fork



请参见 > 分叉存储库


I am trying push a recent commit to my central repository on github, but I am denied access to my own repository. What can I do to change or override settings?

frameworks/Semantic-UI$ sudo git push
Username for 'https://github.com': team@everest.software
Password for 'https://team@everest.software@github.com':
remote: Permission to Semantic-Org/Semantic-UI.git denied to everest-software.
fatal: unable to access 'https://github.com/Semantic-Org/Semantic-UI.git/': The 
requested URL returned error: 403

解决方案

As username for a GitHub repository should not be an email address, but an actual GitHub account user name.

Username for 'https://github.com': team@everest.software aUSername

That is clearly apparent when one join GitHub:


Second, that username should match the one owning the repository you are pushing to:

Semantic-Org/Semantic-UI.git 

I will assume your GitHub username account is not Semantic-Org, which means:

  • you are not the owner (and probably not a collaborator) on Semantic-UI.git repository
  • you cannot push directly to a repository you don't own

If you want to push back to Semantic-UI.git, you need to fork that repository first.

See "Fork a repo".

这篇关于无法推送提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆