github在线演示自己的项目github.io

github 使用记录

1. 网页端create a new repository

2. 

git init
git config --global user.name "abc"
or
git config --global user.email "abc@gmail.com"
git commit -m "first commit"

3.github上的远程仓库clone到本地 git clone http://*****.git

4.在文件夹上传文件

5.git branch 可以使用当前的main分支,也可以新建分支 git checkout --orphan v1.0

6. 

git add .
git commit -m "web demo"
git push -u origin v1.0

7. 如果想展示自己的项目,就要用到github.io。此时需要将仓库名字setting->rename成username.github.io。在网址输入https://username.github.io/abcdefg.html即可打开演示。

8. 给文件改名 

git mv oldname newname
git commit -m "rename files"
git push origin v1.0

9.删除分支

git branch -D v1.0

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值