Migrate or export Github wiki to Gitlab

Darkglow picture Darkglow · Feb 24, 2014 · Viewed 9.6k times · Source

Currently we are working with github and we are actually quiet happy with it. But the costs will grow more and more in near future. Now we've started evaluating other git solutions and stumbled over gitlab, and i've to say, it looks very interesting for us. I've seen that there is as well a wiki feature similar to github. But one important thing is nowhere described...

The only thing i've found is this two year old entry https://groups.google.com/forum/#!msg/gitlabhq/YSM_Il9yk04/_-ybpN4BekYJ

Does anybody know if there are any news in that matter? it looks like it is possible, but how? is there any manual or howto that could help me?

Thanks a lot!

Answer

Leigh Brenecki picture Leigh Brenecki · Feb 25, 2014

Github wikis and GitLab wikis are both just Git repositories containing text files, so you can just pull from one and push to the other.

Go to any page on your Github wiki and click the Clone URL button. You'll get a URL like https://github.com/Homebrew/homebrew.wiki.git. Clone it to your computer:

git clone https://github.com/Homebrew/homebrew.wiki.git
cd homebrew.wiki

Then, on your GitLab wiki, click the Git Access tab, find the URL in the instructions (in the first line under the Clone Your Wiki heading), and push to that URL:

git push https://gitlab.com/adambrenecki/test-project.wiki.git

If you can't find the URLs, they should be roughly the same as on this page, with the usernames/repo names changed as appropriate.