Git使用push提交代码报错error: src refspec dev does not match any

完整错误信息如下:

error: src refspec dev does not match any.
error: failed to push some refs to 'http://[email protected]/frame/lf-file-service-upload-client.git'

操作步骤及原因分析:
1、git新建了一个项目,需要把本地的项目提交到git上的新项目
2、进入本地项目文件夹根目录
3、初始化 git init

4、 git remote add origin http://[email protected]/frame/lf-file-service-upload-client.git
5、git add .
6、提交并填写备注信息 git commit -m 'init'
7、推送代码到master分支 git push -u origin master
前六步均成功,执行第七步报以上错误,经检查发现,本人git账号角色为developer,无法提交代码到master分支,使用其他人的master账号将自己的账号角色改为master即可。

Git使用push提交代码报错error: src refspec dev does not match any