Hi all,
I am investigating the best way of moving from TFS to GIT.
git-tfs works lovely for me, but there is a complication. We have an old and a new TFS server, with the history split between them :(
Our company had to move to a different domain, and so we created a new TFS server on the new domain, did a TFS Get Latest from the old TFS server, and a TFS Checkin on the new TFS server. (we didn't have enough time to research how to migrate the TFS database properly, so this simple solution was chosen)
Both TFS servers are still up and running.
So we have:-
Old TFS server has all history upto Dec 2016.
New TFS server has all history FROM Dec 2016.
I can clone each TFS server into its own local GIT repo no problem, branches, history, all lovely.
Is there any way I can merge the two together? Either at the git-tfs clone stage, or later on using git?
In the cloned git repo from the old TFS server I have tried to manually update the config file, updating the TFS 'urls' to point to the new TFS server and adding 'legacy-urls' that points to the old TFS server, but 'git-tfs fetch' does nothing, and 'git-tfs branch --init --all' fails with
Tfs branches found:
- $/Code/Features/AgX2.19
=> Working on TFS branch : $/Code/Features/AgX2.19
Branches to Initialize successively :
-$/Code/Features/AgX2.19 (312)
The name of the local branch will be : Features/AgX2.19
error: an error occurs when initializing the branch. Branch is ignored and continuing...
=> Working on TFS branch : $/Code/Dev
warning: Some Tfs branches could not have been initialized:
- $/Code/Features/AgX2.19
warning: Some Tfs branches could not have been initialized or entirely fetched due to errors:
- $/Code/Features/AgX2.19
=>error:error: Couldn't fetch parent branch
Thanks,
Richard Wood