hexo github

  Need a github account
https://github.com/nevereverretn

  Specific needs github repository to store personal blog site
username.github.io the username must be consistent with the previous owner
https://github.com/nevereverretn/nevereverretn.github.io

  Github need to configure ssh key easy to upload
  ssh key can be deployed to prevent others from malicious files to the repository, you can not configure
  the client to generate ssh key

ssh-keygen -t rsa -C "[email protected]"  

  Key server settings SSH
Settings -> SSH and GPG Keys -> New SSH Key, add the contents of id_rsa.pub generate client in

  Install plug

$ npm install hexo-deployer-git

  If you do not configure the global configuration git

$ git config --global user.email "[email protected]"
$ git config --global user.name "Your Name"

  Global configuration file .. \ blog root directory _config.yml
  upload settings github

deploy:
  type: git
  repository: [email protected]:nevereverretn/nevereverretn.github.io.git
  branch: master

  Generate and upload

$ hexo d -g 

  Foreign websites, the speed you know

Guess you like

Origin www.cnblogs.com/dailycode/p/12154500.html