Andreas Reiff
Andreas Reiff

Reputation: 8404

TFVC to TF GIT migration: repo organisation, incl multiple solutions and build

We are considering migrating from TFVC to GIT (probably hosted within TFS).

Main reason is the bad support for file movement, which makes larger refactorings a pain. Merging generally is rather poor, often asking for manual resolution even if just one side of the merge has been updated. Another bad fact is that we currently have several team projects, and would like to include (via source) some shared functionality, this seems hard to do when several team projects are involved.

What would be a good organisation for the GIT repo for TFS considering

We are using https://github.com/git-tfs/git-tfs for the migration so far, which seems reasonably good. We don't care much for work items or similar.

Please share your insight. After some quick research I am wondering if it would be worth it, since it seems to be some work, amongst others deciding on a repo structure as well as setting up the build projects anew.

Upvotes: 0

Views: 130

Answers (1)

VonC
VonC

Reputation: 1324258

The main difference is the centralized aspect of TVFS vs. the decentralized nature of Git, which means:

  • Git repositories tends to be smaller and focused on one component
  • which TVFS can host multiple projects in one giant referential

So make sure to split your Git repo resulting from a git-tfs export, in order to:

  • have one Git repository per solution
  • use submodules to include commons projects into your main Git repos

Depending on your build environment, that can include challenges, but with solutions.

Upvotes: 2

Related Questions