I have a repository in GitHub and have a bunch of documentation(.md) files there. I want to migrate the documentations into one of the Azure DevOps Wikis. I am referring this link. When I am using the option Publish code as Wiki,it only shows the repositories which are available inside the Azure DevOps project. Is there a way I can publish the GitHub documentations in repositories which are from another project into the Azure DevOps Wikis?
CodePudding user response:
Consider approaching this differently. If you are using git for your Azure DevOps project, then the Azure DevOps Wiki should be persisted to a hidden, but locatable, git repository. Git clone the source and target repositories locally. Then copy what you want to the target, Azure DevOps Wiki, local clone. Git add, commit, and push the added target files.
Attached images/files, if any, may be more problematic depending on how exactly they are represented in the source GitHub repo. In Azure DevOps Wiki ALL attachments are simply stored in a root .attachments folder. So, you'll need to migrate them there and "fix up" your links.
I've done this going the other direction, Azure DevOps Wiki -> GitHub Enterprise repo. You should know that you’ll likely need to “fix up” page links and that the two markdown styles have some slight variations you may have to address.
CodePudding user response:
Is there a way I can publish the GitHub documentations into the Azure DevOps Wikis?
- for copying documents from GitHub you need to use Import repository from your devops project.
how to import an existing Git repo from GitHub, Bitbucket, GitLab, or other location into a new or empty existing repo in your Azure DevOps project.
- For complete information you can go through the Import Git repo link.