2
votes

I have started a VS2017 solution with 3 project in TFS Server. After few days I have added one more project from GitHub to my VS2017 solution and in TFS Server as well. Now there are changes in GitHub repo which I want to merge in my project.

So is there is a way to use both Git and TFS on single VS solution for different projects different with source control?

1
Are you looking to mix TFVC, or are you just trying to do pure Git Submodules in a TFS backed Git repo? - nschonni
I want my 3 project to use TFVC and 1 Project to use Git(Hub). Because 3 project are develop in close source environment and 1 project is develop on open source environment - Code OverFlow

1 Answers

5
votes

You could Use Git and TFVC repos in the same team project

In Team Foundation Server 2015 Update 1 and above, a project administrator can add a Git repo to a team project created with Team Foundation Version Control (TFVC). You can also add a TFVC repo to a team project created with Git. This allows you to adopt a new version control system while preserving all the data in your team project.

There should be a local git repo corresponding to your remote github repo or tfs hosted git repo. You could add a remote repo in a selected local git repo from Team Explorer-- Settings -Repository Settings

enter image description here

After binding with two remote git repo one for GitHub, one for TFS; you could simply pull down the changes in GitHub to your local git and then push/sync changes to your remote TFS git repo.