我可以像 git 存储库一样检出 github wikis 吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1170166/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 06:46:51  来源:igfitidea点击:

Can I checkout github wikis like a git repository?

gitgithub

提问by ZelluX

I want to modify and view github wikis with local editor like Emacs, and Google Code wikis can be checked out just like code. Is there any way to checkout github wikis? Or is there any other git repository provider offers such feature?

我想用Emacs等本地编辑器修改和查看github wiki,可以像代码一样检出Google Code wiki。有什么办法可以查看 github wikis 吗?或者是否有任何其他 git 存储库提供商提供此类功能?

回答by Max Masnick

You can now!

您现在可以!

git clone https://github.com/user/project.wiki.git

or if you use ssh

或者如果您使用 ssh

git clone [email protected]:username/project.wiki.git

回答by seth

You can't check out the wiki but you can set up a website that you can checkout and edit that gets regenerated on a push.

您无法查看 wiki,但您可以设置一个网站,您可以查看和编辑该网站,该网站会在推送时重新生成。

They call it GitHub Pages. Admittedly, not the same as a wiki though.

他们称之为GitHub Pages。不可否认,虽然与维基不同。