mauro.branca
mauro.branca

Reputation: 1

How to move a project from Microsoft Team Foundation System to GIT with GIT-TFS?

My actual TFS environment is structured as follows:

+DefaultCollection
    +Collection1
    +Collection2
    +Collection3
        +Prod
            +Project1
            +Project2
        +Test
            +Project4

following what in

https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-team-foundation-version-control-repository

related to "migrating with git-tfs"

it is not clear to me how I can migrate Project2 to GIT, I tried several different ways, but not able until now to have a successful migration of a project from TFS to GIT including all history (also older than 180 days). I've been able to clone to local (my local disk) the whole environment (even if with some error while going) using the command

MSYS_NO_PATHCONV=1 git tfs clone --branches=auto http://XXXX/DefaultCollection $/

which worked for some hour producing a local image of the whole DefaultCollection.

Also in this case, how can I push to the remote GIT only the Project2?

thank you for any help Mauro

I tried all suggested git-tfs command I was able to find online, but I'm missing something or maybe what I want to get is not possible.

Upvotes: 0

Views: 68

Answers (0)

Related Questions