在这用 gitee举例
在需要上传的文件夹内打开
上传步骤
1:设置帐号密码,若已设置直接忽略
2.git init 初始化
3.git add . 提交到暂存区
3.git commit -m “备注信息”()
4.git push -u origin master 提交到主分支
提交成功

出现 error: src refspec master does not match any.是因为没有提交到暂存区或者提交的是空文件夹
本文以Gitee为例,介绍了在需要上传的文件夹内使用Git上传的步骤,包括设置帐号密码、初始化、提交到暂存区、提交到主分支等。同时指出若出现 'error: src refspec master does not match any.' 错误,可能是未提交到暂存区或提交的是空文件夹。
在这用 gitee举例
在需要上传的文件夹内打开
上传步骤
1:设置帐号密码,若已设置直接忽略
2.git init 初始化
3.git add . 提交到暂存区
3.git commit -m “备注信息”()
4.git push -u origin master 提交到主分支
提交成功

出现 error: src refspec master does not match any.是因为没有提交到暂存区或者提交的是空文件夹
16万+
748

被折叠的 条评论
为什么被折叠?