1. 登录 GitHub 账号,在页面右上角点击加号图标,选择 “New repository” 创建一个新的仓库; 2. 在“Repository name” 输入框中填入仓库名称,命名为 “[你的 GitHub 用户名].github.io”,比如 “username.github.io”,注意大小写与空格; 3. 填写可选的描述信息; 4. 选择仓库的公开性,建议选择公开; 5. ...
Warning: If your site administrator has enabled Public Pages, GitHub Pages sites are publicly available on the internet, even if the repository for the site is private. 如果站点的仓库中有敏感数据,您可能想要在发布前删除它。 For more information, see "Configuring GitHub Pages for your enterprise" ...
在github创建一个新repository 2. 选择你自己repository 3. 输入repository name,注意,这个名字一定要以github.io结尾,且github.io前面的名字必须是你自己的用户名,不能是其他的名字。然后选择库的可见范围是public,不要设置private,不然网站无法部署。 4. 点击Create Repository 5. 点击Actions查看发布状态 6. 待发布...
在GitHub Desktop的界面上方找到 Publish repository 按钮:点击此按钮后,会出现一个界面:上图中的 Keep this code private复选框会默认选中,表示当前的代码仓库是私有的。目前对于普通个人用户来说,不支持为私有仓库支持Pages功能,所以我们不要选中这个复选框:点击上图中的 Publish repository 即可把当前仓库发布...
三个repository 用于存储原数据的仓库,可以设置为private,部署Github Actions文章内容发生变动时自动构建,并部署到展示username.github.io展示仓。 theme仓库,作为原始数据仓库的子模块(submodule),用以保存hugo的主题文件。 username.github.io仓库,保存hugo生成的静态网站数据,配置了Github pages,做网站展示。
你使用GitHub Pages是受制于GitHub服务条款的,包括禁止转卖等 Warning: GitHub Pages sites are publicly available on the internet, even if their repositories are private. If you have sensitive data in your Page repository, you may want to remove it before publishing. ...
以下教程主要参考beiyuu的《使用Github Pages建独立博客》写成。 配置SSH keys 我们如何让本地git项目与远程的github建立联系呢?用SSH keys。 检查SSH keys的设置 首先我们需要检查你电脑上现有的ssh key: $cd~/.ssh 检查本机的ssh密钥 如果提示:No such file or directory 说明你是第一次使用git。
在“Danger Zone(危险区域)”下“Make this repository private(将此仓库设为私有)”旁边,单击 Make private(设为私有)。 阅读关于将仓库设为私有的警告。 输入您要设为私有的仓库的名称,例如 accountname/reponame。 单击I understand, make this repository private(我已了解,请将此仓库设为私有)。
在“Danger Zone(危险区域)”下“Make this repository private(将此仓库设为私有)”旁边,单击Make private(设为私有)。 阅读关于将仓库设为私有的警告。 输入您要设为私有的仓库的名称,例如accountname/reponame。 单击I understand, make this repository private(我已了解,请将此仓库设为私有)。
$ssh-keygen -t rsa -C"邮件地址@youremail.com"Generatingpublic/private rsa key pair.Enterfileinwhich to save the key (/Users/your_user_directory/.ssh/id_rsa):<回车就好> 注意1: 此处的邮箱地址,你可以输入自己的邮箱地址;注意2: 此处的「-C」的是大写的「C」 ...