目录

在github上搭建自己主页

目录

在github上搭建自己主页

本文章已经生成可运行项目,一键运行

主要是 进行一些补充。

第一步照做就行
首先是第二步 克隆仓库到本地
先下载一个git,电脑创建一个新文件夹,然后

git clone xxxxxhttps://i-blog.csdnimg.cn/direct/54509495439c453083bca1c92cb3682f.png

注意即使你使用了代理,这里大概率也会报错,Failed to connect to github.com
port 443 after 21059 ms: Could not connect to server
解决方法就是-配置 Git 使用代理

git config --global http.proxy http://127.0.0.1:你的代理端口
git config --global https.proxy https://127.0.0.1:你的代理端口

关于第三步 其实有

https://i-blog.csdnimg.cn/direct/f1729a095e174504ba0021383d4f5e70.png

第四步

提交更改

git commit -am 'init'
git push

这里你可能又会遇到一些问题Author identity unknown …fatal: unable to auto-detect email address (got ‘Administrator@SKY-20240903MZX.(none)’)

错误是因为 Git 需要知道你是谁(提交者的身份),才能让你提交代码。你需要先配置你的用户名和邮箱地址。

git config --global user.name "xxx"
git config --global user.email "your-email@example.com"

然后再次提交即可

本文已生成可运行项目一键运行

生成项目 https://csdnimg.cn/release/blogv2/dist/pc/img/btnInscodeAiAskWhite.png