当前位置:   article > 正文

Could not read from remote repository.Please make sure you have the correct access rights错误的解决方法_remote: could not read from remote repository. ple

remote: could not read from remote repository. please make sure you have the

GitHub上新建了含有README.md文件的仓库,push提交的时候提示此错误

后经查阅,是因远程repository和本地的repository有冲突

因为新建项目中含有README.md文件,没有pull到本地,所以产生版本冲突

可以使用如下解决方案:

  1. 先将远程repository修改pull下来:git pull origin master,再提交:git push -u origin master
  2. 使用强制push的方法:git push -u origin master -f (多人协作开发的时候注意,可能会使远程分支修改丢失,或创建新的分支进行提交)

即可解决

 

 

 

 

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号