Rod
Rod

Reputation: 4471

Is Git and TFVC repo types in a team project just for the team project?

I've been using TFVC for a while now. But now, due to needing to be remote sometimes, I'm thinking of using Git in VSTS more often on some of my projects. I came across this post Change Visual Studio Online team project source control from TFVC to Git which is excellent, but I've got a question for clarification. The last answer (as I post this question) by Krzysztof Branicki was very helpful to me. I now know that if a team project in TFS 2015 Update 1 (and higher) and VSTS is created with a repo type of TFVC, you can add Git to the team project. And the same is true if the team project was created to use Git, it can have TFVC added to it. But the distinction here is to the team project. I am interpreting to mean that it does not apply to any projects within the team project. So, as in my case, since most of my team projects in VSTS I created I used TFVC as the repo type, even if I were to add Git to a team project, that won't be applied to any project within that team project. I'm interpreting it to mean that whatever repo type a project was created under, it will only have that repo type applied to it. Am I interpreting that correctly?

Upvotes: 0

Views: 164

Answers (1)

Daniel Mann
Daniel Mann

Reputation: 59037

Source code isn't part of a "team project" in any sense other than it's stored in a source control repository, which is part of a team project.

If you're asking, "If I add a Git repo, is my source code moved from a TFVC repo to a Git repo?", then the answer is no.

If you're making the switch from TFVC to Git, it's important to understand the differences between them and how to properly structure a Git repo and implement a proper branching strategy. Distributed VCS is very different from centralized VCS, and different patterns and practices apply.

Upvotes: 1

Related Questions