git push origin master上传本地项目到远程仓库时,报错“fatal: 'origin' does not appear to be a git repository”

报错“fatal: ‘origin’ does not appear to be a git repository
fatal: Could not read from remote repository.

git push origin master上传本地项目到远程仓库时,报错“fatal: 'origin' does not appear to be a git repository”
原因:没有关注远程仓库为origin
解决:git remote add origin “远程仓库地址”
git push origin master上传本地项目到远程仓库时,报错“fatal: 'origin' does not appear to be a git repository”