首页
找靠谱产品
找解决方案
找靠谱公司
找案例
找对的人
专家智库
悬赏任务
SAAS
ToB门户
了解全球最新的ToB事件
论坛
潜水/灌水快乐,沉淀知识,认识更多同行。
ToB圈子
加入IT圈,遇到更多同好之人。
微博
Follow
记录
Doing
博客
Blog
文库
业界最专业的IT文库,上传资料也可以赚钱
下载
分享
Share
排行榜
Ranklist
相册
Album
应用中心
qidao123.com ToB IT社区-企服评测·应用市场
»
论坛
›
数据库
›
Oracle
›
创建本身的github.io
返回列表
发新帖
创建本身的github.io
[复制链接]
发表于 2025-10-10 18:43:05
|
显示全部楼层
|
阅读模式
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要
登录
才可以下载或查看,没有账号?
立即注册
×
1、创建GitHub账号
GitHub地址:https://github.com/
点击Sign up创建账号
如果已创建,点击Sign in登录
复制
代码
2、创建堆栈
假设Owner为username,则Repository name为username.github.io
说明:
1、Owner为用户名
2、Repository name为仓库名,格式为:用户名.github.io
复制
代码
3、设置SSH-Key
3.1、天生SSH密钥
ssh-keygen -t rsa -f ~/.ssh/github_id_rsa
复制
代码
3.2、查察SSH公钥
cat ~/.ssh/github_id_rsa.pub
复制代码
3.3、摆设公钥
详见:
https://gitee.com/help/articles/4181#article-header0
https://docs.github.com/zh/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
复制代码
4、克隆项目
git clone
[email protected]
:username/username.github.io.git
复制代码
5、创建文件
cd username.github.io
echo "Hello World" > index.html
复制代码
6、提交文件
git add .
git commit -m "Initial commit"
git push -u origin main
复制代码
7、欣赏器访问
浏览器访问域名:username.github.io
复制代码
8、设置CNAME
如果不想
配置
CNAME,忽略以下操作。
复制代码
8.1、以阿里云域名为例,设置CNAME
8.2、给GitHub的username.github.io堆栈设置自界说域名
8.3、查察GitHub的username.github.io堆栈
发现仓库多了一个文件,文件名为CNAME,文件内容为自定义的域名
复制代码
8.4、欣赏器访问
1、访问自定义域名username.xxx.yyy
2、访问username.github.io会跳转到username.xxx.yyy
复制代码
9、详见
https://pages.github.com/
https://docs.github.com/zh/pages
复制代码
回复
使用道具
举报
返回列表
浏览过的版块
SQL-Server
Java
鸿蒙
人工智能
物联网
分布式数据库
饭宝
+ 我要发帖
登录后关闭弹窗
登录参与点评抽奖 加入IT实名职场社区
去登录
微信订阅号
微信服务号
微信客服(加群)
H5
小程序
快速回复
返回顶部
返回列表