如何解决错误:未能将一些引用推送到“原点”
此命令 git push -u origin master
输出以下错误:
error: failed to push some refs to 'origin'
error: src refspec master does not match any
我也试过这个:
git add .
git commit -am "initial commit"
git push -u origin master
然后输出:
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方法
你没有出身。运行 git remote
以证明 [ref]。
使用 git remote add origin <path to remote repository>
添加新源。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。