bater
bater

Reputation: 97

git-tf clone to DevOps

I'm trying to use git-tf to migrate some old TFVC projects from our local TFS to AzureDevOps (also a project with TFVC).

git-tf clone ... works No I have the folder e.g. C:\TFSMigration\ProjectX

When I do git-tf checkin --deep the sourcecode is checked in in DevOps correctly but all files are in the parent-repository not in $DevOpsProjectWithTFVC/ProjectX

Here is my config:

collection = https://myCompany.visualstudio.com

serverpath = $/DevOpsProjectWithTFVC

Upvotes: 0

Views: 963

Answers (1)

Eduardo Messias
Eduardo Messias

Reputation: 23

For this to work, you need a clean git clone of you original TFVC. Do the following:

  1. git-tf clone <TFVC> <Branch> --deep from the original TFVC to a local git repo.
  2. git clone <Local git repo> the local repo to a new folder in your local computer.
  3. git-tf configure <Destine TFVC> --deep (Execute this inside the new folder cloned from the git repo)
  4. git-tf checkin

The first clone you execute using git-tf is mapped to the original TFVC so you won't be able to push the changes from there.

Upvotes: 0

Related Questions