How do I clone a GitHub wiki?

谁都会走 提交于 2019-11-26 10:08:20

问题


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.

I\'ve tried ...reponame/wiki.git and ...reponame.git/wiki, but neither are correct.


回答1:


Append .wiki.git to the repository name.

That is, if your repository name was foobar:

git clone git@github.com:myusername/foobar.git would be the path to clone your repository

and

git clone git@github.com:myusername/foobar.wiki.git would be the path to clone its wiki.




回答2:


The Wiki pages are managed as a repository. So click on your repository, then on the left side click on Wiki. Finally on the upper right corner click on Clone Repository. There you will clear instructions on how to clone it correctly.




回答3:


The syntax for cloning Github wiki repository is:

git clone [RepositoryName].wiki.git

If it's a private repository, then you'll prompted to enter your username/password.



来源:https://stackoverflow.com/questions/15080848/how-do-i-clone-a-github-wiki

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!