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

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

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

解决办法:

控制台中输入

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

再次输入

git push -u origin master

就可以正常提交了.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This blog is kept spam free by WP-SpamFree.