Hello World


Welcome to Hexo ! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Prepare

  1. Download and install Git and node, node version : v12.16.0
  2. test for node and npm, and install hexo.
    $ node -v
    $ npm -v
    $ npm install -g hexo
  3. Config git :
    $ git config --global user.name "xxx"
    $ git config --global user.email "xxx@xxx.com"
  4. 如果需要更换git地址或用户等,需要从windows中删除,按如下操作:
    (1):进入控制面板
    (2):选择用户账户
    (3):选择管理你的凭据
    (4):选择Windows凭据
    (5):选择git保存的用户信息
    (6):选择编辑或者进行删除操作
    (7):完成

One Key for test

$ hexo clean & hexo g & hexo s

One Key for publish

$ hexo clean & hexo g & hexo d

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment

git链接码云仓库报错!连接不到服务

fatal: unable to access ‘https://gitee.com/.......': Couldn’t connect to server,Failed to connect to gitee.com.port 443:Timed out

解决方案:

1.以管理员身份运行中输入cmd。

2.然后输入命令 netsh winsock reset。

3.重启计算机。


文章作者: xArm
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 xArm !
评论
  目录