Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Importing git repo creates many branches

Discussion in 'Unity Version Control' started by kdchabuk, Jul 11, 2023.

  1. kdchabuk

    kdchabuk

    Joined:
    Feb 7, 2019
    Posts:
    47
    Last edited: Jul 11, 2023
  2. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    841
    Hi,

    In order to import a git repo into Unity Version Control / Plastic, the recommended way is to use GitSync:
    https://docs.plasticscm.com/gitsync/plastic-scm-version-control-gitsync-guide

    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.
     
  3. kdchabuk

    kdchabuk

    Joined:
    Feb 7, 2019
    Posts:
    47
    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.
     
  4. carlosalba1985

    carlosalba1985

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    841
    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: https://docs.unity.com/devops/en/manual/uvcs-cli/sync
    You can also run GitSync view GUI.