上传本地代码到GitHub
1.初始化仓库
下面是idea打开项目,相当于git init
2.git add .
3.git commit
如图上面的位置 commit Directory
4.git remote add origin git@github.com:XX 如果你是第一次提交项目,这是你本地与远程的哪个项目的连接。
5.查看你当前项目远程连接的是哪个仓库地址
6. 将本地提交到远程项目中
7.完美
8.更新代码
参考资料.
https://blog.csdn.net/u011853294/article/details/53228720
https://www.cnblogs.com/xiaotaiyang/p/4581401.html
https://www.cnblogs.com/gujun1998/p/11375625.html
https://blog.csdn.net/qq_37937087/article/details/93094403