gittfstfvcgit-tfs

git-tfs can I clone all branches but skip the history?


I want to migrate a project from TFVC to Git. I want to keep the different branches but I dont need each history. Can it be done?

I tried git tfs quick-clone -branches=all but I only fetches one branch


Solution

  • Solution was more simple than I first thought. Just create a new empty Git repository. Create a second branch. Copy files in from TFSVC folder. Commit. Switch branch, copy in the other TFSVC branch. Commit.