Microsoft Certified: DevOps Engineer ExpertDesign and implement source controlHard
A company is migrating its existing on-premises Team Foundation Version Control (TFVC) repository to Azure Repos Git. The TFVC repository has a very large history, including numerous branches and merges, and it's essential to preserve the complete history and relationships accurately in Git. The development team is comfortable with command-line tools. Which tool is best suited for this full-fidelity migration?
- AAzure Migration Assistant
- BAzure DevOps Import Repository feature
- CManual file copy and initial Git commit
- DGit-TFS command-line utility
Show answer & explanationAnswer & explanation
Correct answer: D. Git-TFS command-line utility
Git-TFS is a powerful command-line tool specifically designed for migrating TFVC repositories to Git while preserving full history, including branches, merges, and changesets accurately as Git commits. The Azure DevOps Import Repository feature is simpler but often doesn't handle complex history as robustly.
Why the other options are wrong
- A. Azure Migration Assistant is a general tool for migrating various Azure resources, not specifically for TFVC to Git source control migration.
- B. The Azure DevOps Import Repository feature can import TFVC, but often struggles with complex branching/merging history and might not preserve full fidelity.
- C. Manual file copy loses all history, which contradicts the requirement for preserving complete history.
Git-TFS Utility
A command-line tool that allows you to migrate a Team Foundation Version Control (TFVC) repository to Git, preserving the full commit history, branches, and merge relationships.
- Enables full-fidelity TFVC to Git migration.
- Handles complex branching and merging scenarios.
- Requires installation on a machine with TFVC client installed.
Memory trick: To bridge TFVC to Git, use the Git-TFS bridge.