When i try to push my first project, i got this message " error: src refspec master does not match any ". After browsing a litte, i found that this problem happen because i don't have initial commit yet. I just fork from empty Git Project ( brand new Git project ).
To solve this kind of problem, do this :
git init git add README git commit -m "Initial commit." git remote add origin git@github.com:username/your-project.git git push origin master
and it works for me!
- 本文固定链接: https://zxbcw.cn/post/1700/
- 转载请注明:必须在正文中标注并保留原文链接
- QQ群: PHP高手阵营官方总群(344148542)
- QQ群: Yii2.0开发(304864863)