Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 未能;“推送原点主控”;_Git_Github - Fatal编程技术网

Git 未能;“推送原点主控”;

Git 未能;“推送原点主控”;,git,github,Git,Github,我正在尝试将我的文件提交到GitHub。 我的命令: git status git add -A git commit -m 'message' git push master origin 然后这些错误出现了 error: src refspec origin does not match any. error: failed to push some refs to 'master' 我该怎么做才能解决这个问题? 谢谢。您拥有git push master origin…请尝试以下命令:

我正在尝试将我的文件提交到GitHub。 我的命令:

git status
git add -A
git commit -m 'message'
git push master origin
然后这些错误出现了

error: src refspec origin does not match any.
error: failed to push some refs to 'master'
我该怎么做才能解决这个问题?
谢谢。

您拥有git push master origin…请尝试以下命令:


git-push-origin-master

您有
git-push-origin-master
…请尝试以下命令:


git-push-origin-master

git-push[repository][refspec]
,如果您的情况正好相反,请尝试
git-push-origin-master
。换句话说,您正试图推送到存储库
master
一个名为
origin
的分支
git push[repository][refspec]
,反之亦然,请尝试
git push origin master
。换句话说,您正试图推送到存储库
master
一个名为
origin
的分支。