GitHub Blog Migration Guide Recently I have found that it is becoming increasingly difficult to connect to the world, so I decided to migrate my blog from Github to Gitcafe, to facilitate access by people in China (although I don't do much work), and to make a backup in case the "world's largest gay dating site" goes down one day. The migration took some time, and it was not difficult. Here is a small summary. Preparation First of all, just like Github, you need a Gitcafe account (click here for the registration link). I won’t teach you how to use Hexo here, as everyone knows how to use it by default. After you have an account, you need to create a project. In fact, it is the same as opening a personal blog on Github. Just create a project and make sure the project name is the same as the owner's name. Project establishment After creating it, remember to add the local SSH to Gitcafe. The specific method is:
Then copy your local SSH public key to it. You asked me where the local public key is? Find it on your machine.
The file is OK. RSA Setup Once the preparations are done, you can start the migration. Migration work Go to your blog directory
In the directory, use the following command:
Then create a branch and switch to it.
Submit your local code
Then switch back to your master. Access the domain name given to you by Gitcafe
Has it been moved there already? Aftermath After that, every time you use hexo d -g to update and submit your blog, Github will still be updated. If you make minor updates to the content on Gitcafe, you need to switch back to the gitcafe-pages branch and submit the local code.
Then update the content of your master in the same way, manually update. If you think you need to enter so many commands for each submission, you can write a compound command alias and add it to the .bashrc file and then execute it in your blog directory. alias upblog='cd .deploy/ && git checkout gitcafe-pages && git push -u origin gitcafe-pages && git checkout master && cd .. && hexo d' Tail The whole project is actually not difficult and can be solved with a little effort. However, the stability of Gitcafe does not seem to be as good as Github. Its strength lies in the fast access speed in China, with a ping value of about 40. As for why it is so troublesome, I looked at the Great Wall for a long time, unable to speak to myself. |
<<: Wearable devices may promote the integration of wireless technology
>>: Some tips for iOS development
Recently, the Shanghai Public Security Bureau rep...
Have good teeth Not only can it make you smile En...
We feel sleepy in spring, tired in autumn, and na...
Christmas is here, can New Year’s Day be far behi...
Recently, Pechoin ’s amazing advertisement was al...
We are actively pursuing our careers to the next ...
For SEO specialists, learning to analyze website ...
It’s the Spring Festival travel season again, and...
This article will start from the product highligh...
01 Classification by traffic rating The editor di...
I am Dong Dong Meow Talking animals are so fun! T...
The weather is getting hotter Many car owners are...
On November 9, the first model of Fangcheng Bao A...
Festivals have always been a time for brands to r...
The U.S. Navy remains on track to deploy hyperson...