1、进入本地项目,执行 Git Bash Here -> git init
2、将代码 git add .、git commit -m"提交" 等,提交到本地仓库
3、github上创建自己的Repository
4、将本地的仓库关联到github上 git remote add origin git@github.com:yechangfeng47/SpringCloudZhouYang.git
5、上传代码到github远程仓库 git push -u origin master
参考文章:https://baijiahao.baidu.com/s?id=1619544681032320225&wfr=spider&for=pc
https://blog.csdn.net/u014135752/article/details/79951802