Importing git repo creates many branches

I would like to import a git repository into Unity version control as described here:

https://docs.unity.com/devops/en/manual/uvcs-cli/fastimport

But now I see many branches like this:
9137980--1269220--upload_2023-7-10_16-42-51.png

How can I remove this garbage data?
Is it possible to just get all the git repo’s branches as children of one branch in Unity Version Control?

Hi,

In order to import a git repo into Unity Version Control / Plastic, the recommended way is to use GitSync:

It seems something is wrong with the git export package you generated. The GitSync feature has been tested in multiple environments and it’s optimized to migrate git repos to Plastic. Please let us know if you still have any problems when using it.

Can you give some guidance on how to undo the import and remove all these branches? It says I can’t delete branches with changesets, and cannot delete changesets with existing references.

The docs about cm fast-import don’t say anything about using gitsync instead.

Hi, if you want to reimport the repo, just delete the current Plastic repo and create a new clean empty repo so you can run the GitSync from scratch.

Please check the following command: SYNC
You can also run GitSync view GUI.