Can I checkout github wikis like a git repository?
Asked Answered
C

2

94

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?

Cnut answered 23/7, 2009 at 7:22 Comment(3)
The answer is no longer correct, could you choose the correct one now?Arjuna
I think this is related to programming (ableit tangentially) since I like to support my programming projects on github with wikis. Both need flexible SCM so it makes sense. The way to do this is just to go to the github page and click the "Clone URL" button. The wiki address is the same as the github site with ".wiki.git" appended. Use the standard git clone command to get a local copy for editing.Philanthropist
"closed as off-topic". rolls eyesGroupie
S
141

You can now!

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

or if you use ssh

git clone [email protected]:username/project.wiki.git
Sulfapyridine answered 14/8, 2010 at 15:57 Comment(6)
That's great. Replacing .git suffix in your repo with .wiki, you will clone your wiki pages.Equivalence
Just for kicks and giggles, Here is the actual clone syntax. git clone [email protected]:myusername/reponame.wiki.gitSimpson
Make sure to create at least one page before cloningGena
And as a bonus, you can branch your wiki. The only caveat is that the wiki always only shows master; you can't browse different wiki branches on github.com.Disenthral
@Kelvin actual both work. Your version requires a key registered by the system in order to work. The original answer works just fine; you just have to authenticate each time.Noelyn
@Kelvin Not being a troll, calm down.Noelyn
W
2

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.

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

Wesley answered 25/7, 2009 at 6:25 Comment(1)
Now you can - #15081348Barracoon

© 2022 - 2024 — McMap. All rights reserved.