1.Github注册账号,本地进行git安装
GitHub:https://github.com
git官网:https://git-scm.com
Git客户端安装及使用 https://blog.csdn.net/sunhuansheng/article/details/85010979
2.springboot与git进行关联,使springboot控制台支持git指令
3.在GitHub上创建项目
4.执行git命令和上传GitHub项目初始化文件(一般项目都需要的文件)
git clone https://github.com/sunhuansheng/CMQ-TecentDemo.git
git commit -m"增加readme/license文件"
git pull --rebase
git push
5.将已有的springboot项目文件(自己新建项目也可以) 复制到../CMQ-TecentDemo文件夹中并进行上传
git add .
git commit -m"第一次增加已有的项目代码"
git pull --rebase
git push
6.验证项目可以正常执行