【发布时间】:2021-04-16 12:58:39
【问题描述】:
此命令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.
【问题讨论】:
-
@phd:根据他在我的回答下的评论,他确实有渊源。 Sibasankar 应该edit 这个问题来反映这一点。
-
@DaemonPainter 是的,链接的 dup 正好回答了这个问题。 Sibasankar 应该在询问之前进行搜索。
-
但解决方案是添加原点。他已经有来源,请参阅我的回答下的评论。