利用github免费建立静态网站

  安装git并在cmd中执行:

set https_proxy=127.0.0.1:1080
set http_proxy=127.0.0.1:1080
set GIT_SSL_NO_VERIFY=true 

 1 在github注册用户名、密码。

 2 比如用户名是XX就在github上建立名为XX.github.io的repositorie 

3 将github上库clone到本地

git clone  https://github.com/XX/XX.github.io.git 

4 如果你有顶级域名,如www.your.com,可以在拉取下来的本地的XX.github.io目录中再新建一个名为CNAME的文件 (无扩展名),内容为your.com ,则会将域名绑定到你的github网站。 

5 修改本地目录中的文件 ,表态网站首页是index.html,然后更新远程库

git add -A
git commit -a -m "hello"    
git push
原文地址:https://www.cnblogs.com/pu369/p/15157572.html