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!
扫码二维码 获取免费视频学习资料
- 本文固定链接: http://www.phpxs.com/post/1700/
- 转载请注明:转载必须在正文中标注并保留原文链接
- 扫码: 扫上方二维码获取免费视频资料
查 看2022高级编程视频教程免费获取