github.comに公開倉庫があり、ブランチはmaster
とtest
の2つです。"git push"をgithubにするとエラーが発生する
私はローカルに新しいディレクトリを作成しました:
[ ] git clone [email protected]:{username}/{projectname}.git
は、その後、私は
[ ] git branch my_test
でmy_test
という名前の新しいブランチを作成し、それに切り替えます。
[ ] git checkout my_test
は、その後、私は
[ ] git merge origin/test
と私の公開リポジトリの私のtest
ブランチからそれをマージし、それが早送りになりました。
私はいくつか変更を加えてコミットしました。 は、それから私は
[ ] git push [email protected]:{username}/{projectname}.git test
とgithubので公衆test
ブランチにローカルmy_test
ブランチをプッシュしようとしたが、私はこのエラーを得た:
error: src refspec test does not match any.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to '[email protected]:{username}/{projectname}.git
は私が間違って何をやっているの?
gitでコミットをプッシュすると、[src refspec masterと一致しない可能性があります](http://stackoverflow.com/questions/4181861/src-refspec-master-does-not -match-git-commit-in-git) –
[新しいリポジトリに原点マスターのエラーをプッシュする]の複製があります(http://stackoverflow.com/q/827351/456814)。 –