github建站过程:
1、登录到Github新建仓库
(1)点击New repository新建仓库
(2)这里只需要注意一点Repository name要用Owner加上 .github.io然后点击create repository
2、传源码到github仓库(使用git命令自选目录)
(1)git clone https://github.com/hello0709/hello0709.github.io.git
(2)打开自选目录依次执行下面的命令
git add .
git commit -m “上传网站源码到github”
(3)git push 并输入账号密码(github账号密码)
3、设置域名解析
自己购买域名,设置其中的CNAME值为我们的hello709.github.io
1、登录到Github新建仓库
(1)点击New repository新建仓库
(2)这里只需要注意一点Repository name要用Owner加上 .github.io然后点击create repository
2、传源码到github仓库(使用git命令自选目录)
(1)git clone https://github.com/hello0709/hello0709.github.io.git
(2)打开自选目录依次执行下面的命令
git add .
git commit -m “上传网站源码到github”
(3)git push 并输入账号密码(github账号密码)
3、设置域名解析
自己购买域名,设置其中的CNAME值为我们的hello709.github.io