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

刚上传代码到 github 的时候,当我输入 git push -u origin master 的时,提示:

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.


git 解决 fatal: 'origin' does not appear to be a git repository_第1张图片

解决办法:

控制台中输入

git remote add origin [email protected]:xxse/xx.git

git 解决 fatal: 'origin' does not appear to be a git repository_第2张图片

再次输入

git push -u origin master

就可以正常提交了.

你可能感兴趣的:(git)