Migrate or export Github wiki to Gitlab
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.
I had this problem with over 100 repos with their wikis that I was porting from github to gitlab. I created a few scripts to change the file names and markdown link formatting for the wikis, and to port over all branches and tags. It works, but it's only a 90% solution for the wikis.
https://gist.github.com/josephhainline/b37c5fab8a4bcd6e441e
To run it:
$ port_repos_and_wikis_from_github_to_gitlab.sh MyGithubGroup MyGitlabGroup MyRepo