Difference in Git Repositories in Azure DevOps
Asked Answered
L

1

7

I have two git repositories in a project in Azure DevOps. Why do they display differently? One has a red icon, the other a black icon. What is the difference?

Two different icons

Langobardic answered 20/2, 2022 at 0:42 Comment(0)
V
5

The black icon is a fork.

What's in a fork?

A fork starts with all the contents of its upstream (original) repository. When you create a fork, you can choose whether to include all branches or limit to only the default branch. None of the permissions, policies, or build pipelines are applied. The new fork acts as if someone cloned the original repository, then pushed to a new, empty repository. After a fork has been created, new files, folders, and branches are not shared between the repositories unless a PR carries them along.

See here more info.

Valedictorian answered 20/2, 2022 at 10:27 Comment(4)
Is there an easy way to convert the forked repo into a normal one? I.e., not have the relationship back to the original repo?Langobardic
Do you want to use only the regular? there are changes in the fork that doesn't exist in the original?Valedictorian
Yes, there are changes. I don't want to have a reference to the original -- it's in another project altogether.Langobardic
You can just create a new regular repo, add it as a remote in the fork and push.Valedictorian

© 2022 - 2024 — McMap. All rights reserved.