Github Page创建个人主页

Github Page创建个人主页

一、创建仓库

1、在github上创建个人仓库.

命名为username.github.io。username是你的用户名或者企业名称。
创建仓库

2、设置文件夹路径

在本地找一个存放仓库到文件夹路径,执行:

$ git clone https://github.com/username/username.github.io

git将会在本地文件夹路径下创建一个文件夹命名为username.github.io,并且拉取github上仓库到本地上。

3、创建inex.html文件(首页)

进入username.github.io文件夹,并创建初始化index.html文件。

$ cd username.github.io
$ echo "Hello World" > index.html
4、上传到github仓库
$ git add --all
$ git commit -m "Initial commit"
$ git push -u origin master

git相关命令意思如下:
- add:添加文件、
- commit:提交到本地仓库、
- push:上传github服务端仓库。

5、查看效果

打开浏览器,键入:
http://username.github.io

以上内容参考:https://pages.github.com

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值