1.新建一个空仓库
2.在需要上传的项目下打开 命令行终端或者git bash(快速打开命令行访问到项目,可在路径上添加cmd,回车即可)
3.运行github提供的命令(复制粘贴)
4.上传项目代码
(1)通过idea上传代码,项目名变红,点add,然后,通过Commit Directory上传到本地
(2)Push上传到github仓库
(3)点击push按钮上传完毕!
参考链接:
https://www.cnblogs.com/weizhxa/p/9406710.html
https://blog.csdn.net/idomyway/article/details/92840747
https://blog.csdn.net/hongwei15732623364/article/details/78549315