一、下载Git
1.下载链接:Git
2.打开Git Bash,输入以下命令,设置git全局用户名和邮箱
$ git config --global user.name "Your name"
$ git config --global user.email "email@example.com"
二.IDEA连接GitHub
(一)在IDEA中设置Git
1. 点击File–>Setting
2.选择Version Control–>Git,并在红色方框中填入Git路径中的git.exe
3.添加GitHub账户
(二)在IDEA中创建本地仓库
1.点击VCS–>Import into Version Control–>Create Git Repository
2.项目右键选择Git---->Add
3.选择CommitFile
4.点击Commit后,文件即在本地库中保存
5.点击VCS–>Import into version control–>share project on github
三、在Web项目中添加静态网页
1.将静态网站资源文件导入static中
2.运行http://localhost:8080/index.html
四、GitHub仓库版本覆盖验证
1.上传项目
2.成功