这种情况一般两种情况导致:
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
时间:2018-07-08 13:54:04
这种情况一般两种情况导致:
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