$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to ‘https://github.com/MyDestinyXiu/ActiveMqDemo.git’
是因为本地仓库是空的,先把本地文件加进来,执行126指令
- git add . 添加本地文件
- git commit -m “message” 提交说明
- git remote add origin https://github.com/MyDestinyXiu/ActiveMqDemo.git 添加连接远程库
- git remote -v 查看远程库分支
- git remote remove origin 移除远程库连接
- git push -u origin master 推送到远程库上