Hexo also released on GitHub and Coding

Multi-platform release

Coding on GitHub and has a blog, eleven separate release too much trouble, in fact Hexo is supported on multiple platforms released.
_Config.yml modify configuration files in your home directory can Hexo

1
2
3
4
5
6
7
deploy:
- type: git
repository: https://github.com/Hongye567/Hongye567.github.io.git
branch: master
- type: git
repository: https://git.coding.net/Honye/Honye.git
branch: master

Free password

Hexo are asked to enter a user name and password, especially in a multi-platform release will need to enter a user name and password several times of trouble each time it is submitted.
The reason for entering the password is our warehouse addresses are not HTTPS SSH.

1. First key generation SSH

1
2
3
4
$ Git config --global user.name "yourname"   // configure git user name 
$ git config --global user.email "[email protected]" // configure git mailbox
$ cd ~ / .ssh // see if there .ssh folder, if it can be backed up to delete
$ SSH-keygen -t rsa -C "[email protected]" // generate SSH keys

Will be prompted to select the path to save the key to generate a key, you can directly enter the default path.
Will be prompted to enter a password and confirm the password, hit enter on behalf of not setting a password.

2. Deploy public
on GitHub and Coding deploy public key operations in basically the same, I do not see them here, only GitHub example.
GitHub project open, select the top menu Settings, then select the left menu Deploy keys, then Add deploy key, the key to open the front of the folder, the contents of id_rsa.pub file can be pasted on GitHub.

3. Hexo submit
parameter modification Hexo home directory _config.yml profile

1
2
3
4
5
6
7
deploy:
- type: git
repository: [email protected]:Hongye567/Hongye567.github.io.git
branch: master
- type: git
repository: [email protected]:Honye/Honye.git
branch: master

Now before you can not enter the password. When submitted may report authenticity reliability problems, you can directly enter yes ignored.

Original: Big Box  Hexo also released on GitHub and Coding


Guess you like

Origin www.cnblogs.com/chinatrump/p/11596777.html