error:src refspec master does not match any

解决方法:

 git push origin HEAD

stackoverflow真是神器

git push origin HEAD:refs/for/mybranch
(HEAD指向当前工作的branch,master不一定指向当前工作的branch,所以我觉得用HEAD还比master好些)

http://stackoverflow.com/questions/4181861/src-refspec-master-does-not-match-any-when-pushing-commits-in-git

你可能感兴趣的:(error:src refspec master does not match any)