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

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

git bash报错:

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

输入命令:

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

git bash 输出:

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

对比github

git push时报错fatal: Could not read from remote repository.
两处地址不一样。

解决方法:

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

问题解决,最后git bash输出如下
git push时报错fatal: Could not read from remote repository.
文章来源:https://segmentfault.com/a/1190000015168578
自己再实际中也遇到了这个问题

相关文章: