-1

I have a repo under TFVC format in azure devops, I want to migrate the repo to new organization under different Active Directory. May I know how I can migrate or clone it to new organization. There is no clone as what GIT does has. I want remain the repo as TFVC format but not Git

Bubble Bub
  • 651
  • 4
  • 12
  • 32

1 Answers1

0

Currently, a usual workaround for this is to migrate TFVC to GIT to TFVC.

It is suggested that you could import your TFVC repo into git repo, and then in your local git folder, and use git-tf checkin --deep command to checkin the local repo to a TFVC team project.

===============================================================

update 12/7

I suppose that you need to install the git-tf toolfirst, and then you could refer to this git-tf command guidance.

Configure

git tf configure http://myserver:8080/tfs/collectionName $/TeamProjectA/Main [--deep]

Configures an existing git repo to be able to communicate with a TFS server. Like the clone command, the --deep option may be used to set the default for future fetch and checkin operations.

Checkin

git tf checkin [--deep]

Checks in the changes made in the Git repo into TFS. By default, the checkin command will create a single TFS changeset for the aggregate of all changes made on the current branch in Git since the last checkin to TFS. When used with the --deep option, a TFS changeset will be created for each Git commit on the current branch since the last checkin to TFS.

Ceeno Qi-MSFT
  • 924
  • 1
  • 3
  • 5
  • May I know what the means of local git folder? After I import my TFVC repo into git repo, I need download it into my local computer using Visual Studio and then check in to the git repo into my new organization under TFVC type? – Bubble Bub Nov 21 '22 at 06:12
  • @BubbleBub Hi bub, we suppose so. – Ceeno Qi-MSFT Nov 21 '22 at 06:15
  • Any reference how I can push my clone git repo into new TFVC repo? – Bubble Bub Nov 22 '22 at 05:40
  • @BubbleBub this ticket for [migrate git to tfvc](https://stackoverflow.com/questions/40349494/migrate-git-repository-to-new-tfvc-repository) could help you with the migration – Ceeno Qi-MSFT Nov 22 '22 at 05:58
  • @BubbleBub , hi I have updated my answer. You need to use the `git-tf` tool for the migration. – Ceeno Qi-MSFT Dec 07 '22 at 05:41
  • Thanks for the update. Beside git-tf, is there any other way to convert it or another other ways I no need install any tools or modify the system. Sorry to ask so because a lot of restriction in the installation and modify the Path environment. – Bubble Bub Dec 09 '22 at 06:49
  • Hi I suppose not. `Git-tf` is essential – Ceeno Qi-MSFT Dec 09 '22 at 08:17