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
-
Hi buble bub, what's the latest status of your issue? Has my post helped? – Ceeno Qi-MSFT Dec 02 '22 at 12:03
-
Hi @CeenoQi-MSFT. I'm not able to convert it back to TFVC from Git. – Bubble Bub Dec 07 '22 at 03:28
1 Answers
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.

- 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 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
-