importgitlabwikigitlab-ce

Gitlab Wiki - How to import wiki when importing a repository


I have a Gitlab CE 11.7 docker running on my server. When I import a project from gitlab.com, its wiki is missing. I use the built-in interface to import the projects:

New Project > Import project [tab] > GitLab.com [button]

then I choose the repository to import from a list of repositories connected to my account.

Is there a way to migrate the wiki of a repository from Gitlab.com to a GitLab CE instance?


Solution

  • Wikis are repos as well. You can clone a project by doing:

    git clone https://gitlab.com/{namespace}/{project}.wiki.git
    

    If you click the "Git Access" link at the top in your wiki, you also get this URL.

    Since it is a repo you can then push to the desired destination wiki.