Push上的权限被拒绝错误

Push上的权限被拒绝错误

本文介绍了Github Push上的权限被拒绝错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我被添加为Github项目的成员/贡献者。我在本地机器上克隆了该项目。



我做了一些更改并在本地提交,现在尝试将更改推送到原始回购站,但是当我尝试推送时,一些许可错误?

  C:\ Users \MM\Documents\GitHub\software-licensing-php [主] GT; git push 
origin master
remote:EasySoftwareLicensing / software-licensing-php.git的权限被拒绝为
irfandayan。
致命:无法访问'https://github.com/EasySoftwareLicensing/software-licen
sing-php.git /':请求的URL返回错误:403
C:\ Users\MM\Documents\GitHub\software-licensing-php [master]> git statu
s
#分支大师
#你的分支在2次提交之前超过'origin / master'。
#(使用git push发布你的本地提交)

没有提交,工作目录干净

我是否缺乏推送更改的权限,因此我可以询问项目的原始作者?

解决方案 div>

  • 在原始github项目页面上单击fork按钮
  • 克隆您的分叉存储库,而不是原始的



  • 等待原始作者接受它


Recently, I'm added as a member/contributor for Github project. I have cloned that project on local machine.

I have made some changes and committed locally and now trying to Push changes to original repo but when I try to Push,I get some permission error?

C:\Users\MM\Documents\GitHub\software-licensing-php [master]> git push
origin master
remote: Permission to EasySoftwareLicensing/software-licensing-php.git denied to
 irfandayan.
fatal: unable to access 'https://github.com/EasySoftwareLicensing/software-licen
sing-php.git/': The requested URL returned error: 403
C:\Users\MM\Documents\GitHub\software-licensing-php [master]> git statu
s
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#   (use "git push" to publish your local commits)
#
nothing to commit, working directory clean

Am I lacking some permission for pushing changes so I could ask the original author of project?

解决方案

  • click fork button on original github project page
  • clone your forked repository instead original
  • push to it
  • press Pull Requests button on your repository
  • create it
  • wait for original author to accept it

这篇关于Github Push上的权限被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:33