Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove a git fork relationship in Azure Devops (VSTS)

I created a Azure Devops (VSTS) project by forking another project. Now whenever we clone the new project you get references to the original project in the console output

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>

Is there any way to break this linkage so the new project never references the old one?

like image 470
reggaemahn Avatar asked Jun 04 '18 04:06

reggaemahn


1 Answers

If you don't want anymore to have a fork, you could try:

  • clone that fork
  • delete the VSTS forked repo
  • create a new empty one
  • change the remote URL of your local clone

    git remote set-url origin /URL/new/VSTS/repo
    
  • push everything

    git push --mirror
    
like image 109
VonC Avatar answered Sep 20 '22 08:09

VonC