初始化仓库提交错误

初始化

git init

连接远程仓库地址

git remote add origin https://github.xxx.xxxxx

提交

git push -u origin master

报错

error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:hahaha/ftpmanage.git'

原来是没有添加文件就 push

git add -A
git commit -m "commit message"

file

执行完上面两步

git push -u origin master

成功!

file