1.首先创建一个新的repository
2.检查是否有ssh密钥: cd ~/. ssh
3.生成ssh密钥:ssh-keygen -t rsa -C "xxxxxxxx@qq.com"
然后按3个回车。
4.进入ssh文件夹复制id_rsa.pub文件的内容:
cd ~/.ssh
ls
more id_rsa.pub
![]()

5.在github上添加密钥:找到右上角的Settings,选中之后在左边点击SSH and GPG

6.克隆你的项目:
git clone https://github.com/username/username.github.io
例如: git clone https://github.com/Isabellahu/HuWenxin.github.io.git
7.添加一个index.html 文件
cd HuWenxin.github.io
echo "Hello World" > index.html
8.push:

最低0.47元/天 解锁文章
792

被折叠的 条评论
为什么被折叠?



