代码之家  ›  专栏  ›  技术社区  ›  reggaemahn

在Azure Devops(VSTS)中删除git fork关系

  •  12
  • reggaemahn  · 技术社区  · 8 年前

    我通过分叉另一个项目创建了一个Azure Devops(VSTS)项目。现在,每当我们克隆新项目时,您都会在控制台输出中获得对原始项目的引用

    remote: This repository is a fork. Learn more at https://aka.ms/whatisafork.
    remote: To add its upstream as a remote, run:
    remote: git remote add upstream <link to original repo>
    

    有没有办法打破这种联系,让新项目永远不会引用旧项目?

    2 回复  |  直到 7 年前
        1
  •  3
  •   VonC    8 年前

    如果你不想再这样了 have a fork ,你可以试试:

    • 克隆那个叉子
    • 删除VSTS分叉回购协议
    • 创建一个新的空的
    • 更改本地克隆的远程URL

      git remote set-url origin /URL/new/VSTS/repo
      
    • 推动一切

      git push --mirror
      
    推荐文章