如何克隆 GitHub wiki? [英] How do I clone a GitHub wiki?
问题描述
如何克隆我的 GitHub 存储库的 wiki?我知道它保存为单独的 Git 存储库,但我不记得路径了.
How do I clone my GitHub repository's wiki? I know it's saved as a separate Git repository, but I can't remember the path.
我试过 ...reponame/wiki.git
和 ...reponame.git/wiki
,但都不正确.
I've tried ...reponame/wiki.git
and ...reponame.git/wiki
, but neither are correct.
推荐答案
将 .wiki.git 附加到存储库名称.
Append .wiki.git to the repository name.
也就是说,如果您的存储库名称是 foobar:
That is, if your repository name was foobar:
git clone git@github.com:myusername/foobar.git
将是克隆存储库的路径
git clone git@github.com:myusername/foobar.git
would be the path to clone your repository
和
git clone git@github.com:myusername/foobar.wiki.git
将是克隆其 wiki 的路径.
git clone git@github.com:myusername/foobar.wiki.git
would be the path to clone its wiki.
注意:您必须至少拥有一页才能克隆 wiki 存储库.(通过@tobiasz-cudnik)
Note: You must have at least one page to be able to clone the wiki repo. (via @tobiasz-cudnik)
这篇关于如何克隆 GitHub wiki?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!