1. 下载git工具
https://git-scm.com/
默认设置安装
2. 注册github账户,创建项目,如m.weipinhui。

3. 打开gitbash, cd到项目路径下。
依次运行上图中的命令。其中第二条命令改成git add .


其中,在运行git commit -m "first commit" 之前,必须设置user.name和user.email,如果没有设置,会弹出以下提示信息,按照提示信息运行以下两行命令。
git config --global user.email "you@example.com"
git config --global user.name "your name"

4. 刷新项目,查看项目列表

5. 生成静态网页
点击setting, 在GitHub Pages部分,选择master branch, 点击save, 生成静态网页访问网址:https://feiyy.github.io/m.weipinhui

特别注意,要使用静态网页这一功能,必须创建一个特殊的空项目,项目名称为[yourgithubname].github.io
访问网址,查看效果。

