Map tfs tree with git

78 views
Skip to first unread message

GojaN

unread,
Jun 29, 2012, 11:56:46 AM6/29/12
to git...@googlegroups.com
Hi.

I have a a doubt about how I should map the branch tree I have in the TFS server with my local git clone. The struct  in the server is like:

Project A
     |_____ Branch 1
     |_____ Branch 2

Project B
     |_____ Branch 1
     |_____ Branch 2

I have a git clon for every project. This was fine before the TFS branches comes in the picture. TFS manages the branches as folders so if I need to merge some changes from, let's say, "Project A -> Branch 1" to "Project A -> Branch 2" I must do it by hand.

How do you think I can better model this with git?

Thanks

Nodir Turakulov

unread,
Jul 1, 2012, 4:15:30 AM7/1/12
to git...@googlegroups.com
This was always the biggest problem with the current git-tf implementation. Unfortunately, at the moment I can suggest nothing but having separate repositories for different branches.

The main problem with it is the difference between Git and TFS branching philosophy. For example, in TFS you can merge a subfolder. AFAIU, In Git you can merge only entire repository. And there may be other problems due to the difference. I wanted a simple working solution, so I didn't do it. I will make a research on this

There is a related problem: right now a git-tf user has to map a local folders to a TFS folder manually. If we figure out how to deal with branching differences, I think we could kill two birds with one stone with the following solution:

git-tf-clone will map a TFS folder to a ".git/tf/branches/<branch>", so first of all separate the a Git repository folder and a TFS folder. Each TFS branch will sit in its own folder, for instance .git/tf/branches/Main, .git/tf/branches/Development. Also the "tfs" branch will probably renamed to "tfs/master" and there may be other "tfs branches".

I should look what Git-tfs is doing in this regard.

-Nodir

Nodir Turakulov

unread,
Jul 1, 2012, 7:04:54 AM7/1/12
to git...@googlegroups.com
BTW everybody is welcome to bring ideas

-Nodir
Reply all
Reply to author
Forward
0 new messages