将github repo文件迁移到不同项目的Azure Devops Wiki

发布于 2025-02-07 08:16:55 字数 420 浏览 3 评论 0原文

我在GitHub有一个存储库,那里有很多文档(.md)文件。 我想将文档迁移到Azure Devops Wiki之一中。 我被引用 this 链接。 当我使用选项 以Wiki 发布代码时,它仅显示Azure DevOps项目中可用的存储库。 有什么方法可以将来自另一个项目的存储库中的GitHub文档发布到Azure Devops WikiS中?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

牵你手 2025-02-14 08:16:55

考虑以不同的方式接近这一点。如果您将git用于Azure DevOps项目,则Azure Devops Wiki应该持续到一个隐藏但可定位的Git存储库中。 git克隆源和目标存储库本地。然后将您想要的内容复制到目标(Azure Devops Wiki,本地克隆)。 git添加,提交并推动添加的目标文件。

附加的图像/文件(如果有的话)可能会更有问题,具体取决于它们在源github存储库中的确切表示。在Azure Devops Wiki中,所有附件都简单地存储在root 。Attachments文件夹中。因此,您需要将它们迁移到那里并“修复”您的链接。

我已经做到了另一个方向,azure devops wiki-> Github企业仓库。您应该知道,您可能需要“修复”页面链接,并且两个降价样式可能需要解决一些差异。

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 slight variations you may have to address.

遗失的美好 2025-02-14 08:16:55

有没有办法将GitHub文档发布到Azure Devops Wikis?

  • 用于从GitHub复制文档,您需要从DevOps项目中使用导入存储库。

如何从github,bitbucket,gitlab或其他位置导入现有的git回购中,以在您的Azure DevOps项目中的新现有仓库中。

“

  • 有关完整信息,您可以通过导入git repo link

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.

enter image description here

enter image description here

  • For complete information you can go through the Import Git repo link.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文