Git本地仓库提交代码到远程仓库出现报错:fatal: ‘origin‘ does not appear to be a git repository fatal: Could not read from remote
问题描述——fatal: ‘origin‘ does not appear to be a git repository fatal: Could not read from remote的解决方法
问题原因
错误分析:
错误的主要原因是gitee中的README.md文件不在本地代码目录中
此时我们要执行git pull --rebase origin master命令将README.md拉到本地,
或者是其它原因
解决方法
先使用
git remote –v ,检查远程仓库是否是对应地址
git branch -v,检查分支是否正确,之后切到你想要的分支
发现没有什么大问题
git remote -v,查看仓库信息是否正确git remote remove orign,删除远程仓库git remote add origin 仓库,重新添加远程仓库git push -u origin master,提交信息到master仓库
删除远程仓库,重新远程连接试试
git pull --rebase origin master命令将README.md拉到本地
后面再试试
如果还不行就重新走遍流程试试
博主CSDN地址为:blog.csdn.net/Deng8723473…