Skip to content

Hexo init failed on git clone #494

@chilly

Description

@chilly

Check List

Please check followings before submitting a new feature request.

  • [Y] I have already read Docs page
  • [Y ] I have already searched existing issues

Feature Request

Execute
hexo init blog in my window10.
Tips is

INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
fatal: unable to access 'https://github.com/hexojs/hexo-starter.git/': Recv failure: Connection was reset
WARN  git clone failed. Copying data instead
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html

I execute the cmd:

git clone --recurse-submodules --depth=1 --quiet https://github.com/hexojs/hexo-starter.git blog

It's not work. But if I execute the below cmd:

git clone --recurse-submodules --depth=1 --quiet [email protected]:hexojs/hexo-starter.git blog

It's work.

So I changed $basedir/node_model/hexo_cli/dist/console/init.js
rewite GIT_REPO_URL as [email protected]:hexojs/hexo-starter.git;
And redo hexo init blog.

It's work.

I think it's a point you can improve.

Others

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions