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
訪問網址,查看效果。
