Work with Azure Repos and GitHub
Migrating from TFVC to Git
- Create an empty Git repository.
- Get-latest from TFS.
- Copy/reorganize the code into the empty Git repository.
- Commit and push.
It is also possible to import a TFVC data into Azure Repos using Import in Azure DevOps.
Migrating multiple branches to Git from TFVC
GIT-TFS is an open-source project used to synchronize Git and TFVC repositories.
- Run
choco install gittfs
. - Add GIT-TFS folder to path.
- Clone the repository:
git tfs clone http://tfs:8080/tfs/DefaultCollection $/some_project
. - Enter the repository.