A team is migrating from TFVC to Git. They have a large codebase with many branches. What is the recommended approach to preserve the history during migration?
Trap 1: Copy the latest version of the code to a new Git repository and…
Loses all history.
Trap 2: Use the Git-TF tool to clone the TFVC repository
Git-TF is deprecated; git-tfs is recommended.
Trap 3: Export TFVC as a Git bundle and import with --no-metadata
Bundles are for Git-to-Git, not TFVC.
- A
Copy the latest version of the code to a new Git repository and start fresh
Why wrong: Loses all history.
- B
Use the Git-TF tool to clone the TFVC repository
Why wrong: Git-TF is deprecated; git-tfs is recommended.
- C
Use the git-tfs tool to clone the TFVC repository with changesets
git-tfs converts TFVC changesets into Git commits preserving history.
- D
Export TFVC as a Git bundle and import with --no-metadata
Why wrong: Bundles are for Git-to-Git, not TFVC.