git 提交到远程仓库的错误

xiaoxiao2021-02-27  231

错误:$ git push origin master      出现下面两行错误

fatal: 'origin' does not appear to be a git repository

fatal: Could not read from remote repository.

解决办法:

第一步:输入 git remote remove origin

第二步:输入 git remote add origin 你的git URL地址【例如:https://github.com/******/%%%%%】

注意:%%%%%  这一部分需要你提前在git上建立,即 你的仓库名。

第三步:输入 git push origin master

到此结束!!!

转载请注明原文地址: https://www.6miu.com/read-8550.html

最新回复(0)