Transfer Hexo Blog from Windows to Mac
My old laptop died last week after working for me for five years. And I bought a new M1 mac the next day. It is not hard to transfer hexo blog to a mac. The following are steps I take.
Create a new folder for it and then call new terminal at folder with
hexo init and
Test the new folder with
I used google drive for this. Compress them and then download. Replace the ones with them.
First get info of your blog folder, make sure you have privilege to write to it.
And then use
sudo chmod -R 777 testproject to change the permission level of your project directory.
If you have configured git before, ignore this step.
Then generate your SSH.
You can find the generated SSH in ~/.ssh/id_rsa.pub.
.ssh is a hidden folder. You can open it with
open ~/.ssh // . Find id_rsa.pub there, and then add SSH to your GitHub account.
Or you can use
cat ~/.ssh/id_rsa.pub to print the key and then copt it.
Input your github user name. As for the password, you should input your personal access code rather than your password anymore.
You can find more info about personal access code here. https://stackoverflow.com/questions/68775869/support-for-password-authentication-was-removed-please-use-a-personal-access-to