1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > error: src refspec main does not match any

error: src refspec main does not match any

时间:2018-07-08 13:54:04

相关推荐

error: src refspec main does not match any

这种情况一般两种情况导致:

1.分支不存在

使用checkout创建对应分支

git checkout -b master

2.没有使用git add和git commit将文件添加至缓存

git add .git commit -m "xxx"

3.没有README文件

touch README

添加完README文件后还需要重新git add和git commit

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。