Hugo 博客搭建,部署Github Pages

geekswg

git 上传

按照如下步骤将博客内容上传到Git 仓库,在public 目录下,依次执行下面的命令:

初始化仓库

git init

将所有内容添加到git

git add .

提交到git 本地

git commit -m "我的博客第一次提交"

关联到远程git,注意这里需要写你自己的git 地址

git remote add origin https://github.com/codeshellme/codeshellme.github.io.git

推送到远程git

git push origin master

    

原文地址:https://www.cnblogs.com/geekswg/p/15551721.html