1.下载Git并安装
2.在idea中配置Git File--->Settings
3.登录GitHub账号(如果没有,自己去GitHub.com官网注册)
4.创建本地仓库
找到自己要存储的项目并点击OK
5.创建远程仓库
6.把项目添加到暂存区
7.将项目添加至远程仓库
8.打开GitHub官网查看项目!