简体   繁体   中英

Migrate SVN to TFS with GIT TFS

I'm wondering whether I can use GIT-TFS as a tool to migrate git repository to TFSVC.

I've tried using GIT TF and it works using checkin --deep. (not working with branches though)

Is this somehow possible using GIT-TFS?

Steps:

  1. git svn to create a local git repository from remote svn.
  2. git tfs init http://tfs-repository
  3. git tfs rchekin <- ERROR: No TFS parents found.

Any help?

(Disclamer : I'm one of the main developers of git-tfs...)

I've tried using GIT TF and it works using checkin --deep. (not working with branches though)

Is this somehow possible using GIT-TFS?

Perhaps, if you know perfectly well how git-tfs works, you could end up with what you ask for (because git-tfs support branches). But it won't be an automatic process, you will have to do a LOT of things manually (with hours and hours of hard work to do!). I highly recommend against trying to do that. The way Git works and TFS works made it very difficult to migrate from Git to TFSVC...

Git-tfs was created to use git locally when you are obliged to use TFS as source control or to migrate sources away of TFSVC because that's not a good Version Control System.

Don't try to use it to be locked using TFSVC :(

I think that you should better either migrate your sources inside a Git project in TFS if you have TFS2013 or use Git as central repository.

You can try those steps :

git-tf clone <TFSSERVERURL_SOURCE> $/<TFSBRANCPATH> oldserver --deep
-- run Git CMD
git init newserver
cd newserver
git pull ..\oldserver --depth=100000000
git-tf configure <TFAURL_DESTINANTION> $/<TFSBRANCPATH>
git-tf checkin --deep --autosquash

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM