git push时报错fatal: Could not read from remote repository.

将本地库的所有内容推送到远程库,输入命令:

在这里插入图片描述

git bash报错:

在这里插入图片描述

输入命令:

在这里插入图片描述

git bash 输出:

在这里插入图片描述

对比github

在这里插入图片描述
两处地址不一样。

解决方法:

输入以下两个命令行:
	$ git remote set-url origin https://github.com/Alreadgo/u...
	$ git push -u origin master

问题解决,最后git bash输出如下
在这里插入图片描述
文章来源:https://segmentfault.com/a/1190000015168578
自己再实际中也遇到了这个问题

猜你喜欢

转载自blog.csdn.net/zuoyouzouzou/article/details/83661509