简体   繁体   中英

TFVC to Git Mirroring (No Migration)

I am looking for a mirroring solution for TFVC and Git .

I need to have developers continue using TFVC, but I want TFVC content to be mirrored (real-time preferably) to remote Git repositories.

This is not a migration and I don't want developers to have to use client-side tools for this. This can be a one-way mirroring process (TFVC --> Git).

Basically you can Map TFVC actions to Git or Import repositories from TFVC to Git if you are using TFS 2017 or later version.

But for the mirror, you need to sync the content between TFVC and Git, real-time is impossible, however you can try to run scripts in CI ( continuous integration ) build to get the latest changes from TFVC and transfer them to local Git repository, then commit the changes and push to the remote Git repo.

To do that you need to use the git-tfs tool, it's a bridge tool to be able to import a TFVC history in a git repository. Reference this thread : Use git with git-tfs for backing up TFVC on Visual Studio Team Services . And this article may helps : MIGRATING FROM TFVC TO GIT

You can change From TFVC to Git if possible, then you can sync the contents bewteen two Git repositories more smoothly. Refer to Keep Git repository in sync between VSTS / TFS and Git for details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM