Skip to content

git submodule add安装失败 #163

Description

@joker1024567

使用:git submodule add git@github.com:MeiK2333/github-style.git themes/github-style

PS C:\Users\wucha\ZY_Hugo\hugo_wq_github> git submodule add git@github.com:MeiK2333/github-style.git themes/github-style
Cloning into 'C:/Users/wucha/ZY_Hugo/hugo_wq_github/themes/github-style'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:MeiK2333/github-style.git' into submodule path 'C:/Users/wucha/ZY_Hugo/hugo_wq_github/themes/github-style' failed

使用:git submodule add https://github.com/MeiK2333/github-style.git themes/github-style

PS C:\Users\wucha\ZY_Hugo\hugo_wq_github> git submodule add https://github.com/MeiK2333/github-style.git themes/github-style
Cloning into 'C:/Users/wucha/ZY_Hugo/hugo_wq_github/themes/github-style'...
remote: Enumerating objects: 1176, done.
remote: Counting objects: 100% (582/582), done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 1176 (delta 480), reused 428 (delta 428), pack-reused 594 (from 2)
Receiving objects: 100% (1176/1176), 2.58 MiB | 5.48 MiB/s, done.
Resolving deltas: 100% (706/706), done.
warning: in the working copy of '.gitmodules', LF will be replaced by CRLF the next time Git touches it

感觉使用后一个命令稳定些,不知道是不是错觉
我提这个就是想作者修改下文档的相关段落

git submodule add git@github.com:MeiK2333/github-style.git themes/github-style修改为:

git init
git submodule add https://github.com/MeiK2333/github-style.git themes/github-style

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions