简体   繁体   中英

Migration from large tfs codebase using tfvc to using git still with tfs backend

The organisation I work for are wanting to migrate their current code base from TFS (using TFVC) to Git but with the entire code base still residing in TFS. This needs to incorporate the developers who currently (majority) utilise Visual Studio 2010. We have explored options of using git plugins, git-tfs/git-tf command line tools but still without a definitive answer or a best approach to this. Essentially, Is there a way to successfully migrate from the two - without the need of copying the large code base (distributed style system with local copy of repo - which would be 30GB+ - not feasible on their VMs), and using the Visual Studio GUI tools for Git? If anyone has any ideas or opinions on this that would be a great help.

To achieve what you want, you have to migrate your TFVC team projects to Git team projects in TFS (require TFS 2013 or above version). The steps would be as below:

  1. Create a new Team Project with GIT as version control in TFS.

  2. Use git-tf tool to clone all the projects to your local machine from TFVC Team Project:

The optional --deep flag may be used to clone each TFS changeset for the specified path into the new Git repo. If you don't need history, you can ignore this flag.

git tf clone http://myserver:8080/tfs/collectionName $/TeamProject [--deep]
  1. Use GIT BASH to push the cloned TFVC team project to the Git repository on TFS:

>

Git remote add http://TFSServerName:port/tfs/Collectionname/_git/GITRepositoryName

Git push origin master

Detailed steps you can refer to this article:

https://blogs.msdn.microsoft.com/tfssetup/2015/05/19/migrating-a-tfvc-team-project-to-a-git-team-project-along-with-changeset-history-in-tfs/

After you migrate the TFVC team projects to Git team projects, you can install Visual Studio 2013 or Visual Studio 2015 to start using Git in Visual Studio .

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