错误:$ git push origin master 出现下面两行错误
fatal: 'origin' does not appear to be a git repositoryfatal: Could not read from remote repository.
解决办法:
第一步:输入 git remote remove origin
第二步:输入 git remote add origin 你的git URL地址【例如:https://github.com/******/%%%%%】
注意:%%%%% 这一部分需要你提前在git上建立,即 你的仓库名。
第三步:输入 git push origin master
到此结束!!!
本文介绍了解决Git在尝试向远程仓库推送代码时遇到的错误。首先通过移除原有远程源,然后重新添加正确的远程仓库地址,最后再次尝试推送。适用于初次配置Git远程仓库的开发者。
1392

被折叠的 条评论
为什么被折叠?



