error:src refspec master does not match any

316 ワード

解決方法:
 git push origin HEAD
stackover flowは本当に神器です。
git push origgin HEAD:refs/for/mybranch(HEADは現在の作業のbranchを指しています。masterは必ずしも現在の作業のbranchを指すわけではないので、HEADを使うのはマスターより良いと思います。)
http://stackoverflow.com/questions/4181861/src-refspec-master-does-not-match-any-when-pushing-commits-in-git