Just for recording in case this tragedy happens again.

Backup .ssh folder (important)

Basically it contains your RSA pub & priv key and SSH config, which can be troublesome when get lost.

Also backup .gitnore file in your projects’ dir.

So most turorials on the internet suggest generating RSA keys locally (again) and copying them to github (again). However if you backup the files mentioned above, simply copying .ssh to the user’s dir works well. For SSH config in remote acc won’t disappear when the system is reinstalled.

(RE)Download GIT, Nodejs & HEXO

Not much to say, just encountered a bug where Nodejs’ autoinst was unable to write its dir to PATH, so I manually write it.

Better restart your pc after this.

And npm install, hexo g; hexo s. Done.

Problematic HEXO D

ERR MESSAGE (username hidden for privacy)

fatal: detected dubious ownership in repository at '.../blog/.deploy_git'
'.../blog/.deploy_git' is owned by:
(inconvertible) 
but the current user is:
        DESKTOP-xxxxxxxxx/xxxx

Based on the error message, it seems to be a user permission issue. You can resolve it by changing the ownership of .deploy_git and .git files.

I really don’t understand why modern personal computers still have this design of user groups, it’s causing me a lot of trouble. Can’t we just have Linux-like root user privileges?

⬆︎TOP