github 分享代码,每个人都能看到。具体操作如下:
一.注册github https://github.com/
二.下载Git,安装
三..左上角IDEA中设置GitHub,File-->Setting->Version Control-->Git
在Path to Git executable 处选择Git安装位置 如:C:\Program Files\Git\bin\git.exe ; 点击Test 弹出 success
四.在IDEA中设置GitHub,File-->Setting->Version Control-->GibHub
Host:github.com
Token:点击Create API Token,输入在github中注册的用户名和密码生成token
点击Test,测试是否连接成功
五.找到菜单栏 第一次提交 VCS—— import into version control——share project on GitHub
等一会登录github 可以看到存在项目
之后改动项目VCS——Git——commit directory——commit directory and fush