Home >Development Tools >git >Detailed graphic explanation on how to move a blog from Github to Gitee
This article brings you relevant knowledge about Gitee. It mainly introduces to you how to move my blog from Github to Gitee step by step. Friends who are interested can take a look below. I hope it will be helpful to you. help.
Cause
Originally I didn’t have this plan, but recently github I can’t access it no matter what. I really can’t stand it anymore, so I can only Go to gitee and make a record here
Process
In fact, I had such an idea before, but I didn’t do it. Do it well, I made up my mind this time, and finally got it done
Key points
1. Create a new gitee warehouse
2,
2. Open the Gitee Pages service
3. Update the original _config.yml file
Modify_config.yml
Change the url to the new one (the url generated by gitee pages)
# URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url: https://wnhyang.gitee.io root: /
repo Change it to HTTPS or SHH of the new warehouse Link
# Deployment ## Docs: https://hexo.io/docs/deployment.html deploy: type: git repo: git@gitee.com:wnhyang/wnhyang.git branch: master
Note:
To use SSH, you must configure the SSH key in advance (github and gitee can use one key at the same time)
Old A few things
hexo n "" # 创建新博客 hexo clean # 清理 hexo g # 生成 hexo s # 本地端口测试 默认4000端口 hexo d # 部署
Update Pages
After switching to Gitee, I found that after deployment, I still need to manually update the Gitee Pages page. After all, it is free to use
End
The result is still good, now the visit is very easy and comfortable
2022.12.04
Updated, I regret it again. Can’t we have our cake and eat it too? Github
Access is slow, but there will be no restrictions on content; Gitee
Access is fast, but there is a strange review mechanism. Recently, I cannot deploy my latest through Gitee Page
I'm very worried about blogging. I really want to give up Gitee
. Now I can only reluctantly switch to Github
. Hey, it's a change, and it's convenient to have a personal server!
Recommended learning: "Git Video Tutorial"
The above is the detailed content of Detailed graphic explanation on how to move a blog from Github to Gitee. For more information, please follow other related articles on the PHP Chinese website!