简体   繁体   English

提交后无法从Github推入/拉出

[英]Cannot Push or Pull to/from Github after Commit has been made

So I'm new to Github and have been having a lot of issues with shared repositories. 因此,我是Github的新手,并且在共享存储库方面遇到了很多问题。 As of recent, I cannot push or pull after a commit has been made by another contributor. 从最近开始,在其他贡献者做出提交之后,我无法进行推送或拉动。

It was working fine at first, and let me push/pull after minor commits had been made (adding view controllers, etc), but after a file is uploaded, it no longer allows me to push or pull. 起初它运行良好,让我在进行较小的提交(添加视图控制器等)后进行推/拉操作,但是在文件上传后,它不再允许我进行推拉操作。 All other contributors are having the same issue. 所有其他贡献者都遇到相同的问题。 When I attempt to pull, I get the error "The remote repository could not be found." 当我尝试拉时,出现错误“找不到远程存储库”。 Any advice as to how I could go about fixing this would be appreciated. 关于如何解决此问题的任何建议将不胜感激。

Thank you! 谢谢!

This may answer your question . 这可能会回答您的问题

Because of your error code, I would recommend running git remote show origin to show the current URL of your fork (or clone) and make sure it corresponds with the GitHub URL. 由于您的错误代码,我建议您运行git remote show origin以显示您的fork(或克隆)的当前URL,并确保它与GitHub URL相对应。 The error can also occur if you don't have edit permissions in a repository, be sure to double check that on GitHub as well. 如果您在存储库中没有编辑权限,也会发生此错误,请确保在GitHub上再次进行检查。

Also, as Edmundo stated above, using git push --force as well as fetch -> merge may be worth a try as well. 而且,正如上面的Edmundo所述,使用git push --force以及fetch-> merge也可能值得一试。

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

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