14

Well, I started this topic mainly to share the experience I had with git-tfs recently with the community.

If anybody has anything else to share - it will be helpful for me as well.

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141
Ivan Danilov
  • 14,287
  • 6
  • 48
  • 66

3 Answers3

10

About work in environment where several developers use git-tfs simultaneously. About commit identity caveats actually: http://sparethought.wordpress.com/2011/06/16/first-git-tfs-usage-problems/

Is rebasing workflow with git-tfs possible? http://sparethought.wordpress.com/2011/06/21/gittfs-rebasing-workflow-is-it-possible/

Not specifically git-tfs but affects it too. Problems with HOME directory on Windows: http://sparethought.wordpress.com/2011/06/16/troubleshooting-gitextensions-home-directory/

Establishing central git repository to avoid redundant TFS round-trips: http://sparethought.wordpress.com/2011/07/18/how-to-establish-git-central-repository-for-working-against-tfs-with-git-tfs-bridge/

My environment for day-to-day work with git-tfs: http://sparethought.wordpress.com/2012/08/23/my-environment-for-day-to-day-work-with-git-tfs/

Ivan Danilov
  • 14,287
  • 6
  • 48
  • 66
2

And now you can easily manage TFS Branch with git-tfs : http://github.com/git-tfs/git-tfs/wiki/Init-branch

Philippe
  • 28,207
  • 6
  • 54
  • 78
  • That's a great thing, I'll try it definitely. Actually I'm already trying it and having some problems, so debug to the rescue. Thanks nevertheless, finding problems is often easier than writing thing in the first place. – Ivan Danilov Dec 06 '12 at 15:47
  • I'm interested by your problems because it was quite eavily tested by at least 10 people on different project without problems. If it could help to improve... – Philippe Dec 06 '12 at 21:26
  • I haven't had much time yet, but the problem is in the fact, that in our case branch in TFS is created from `$/A/B` to `$/A/B2` while git repository is cloned from subfolder, i.e. `$/A/B/C` - thus I want to see branch in git corresponding to `$/A/B2/C`. Auto-detection stucks [here](https://github.com/git-tfs/git-tfs/blob/master/GitTfs.VsCommon/TfsHelper.PostVs2010.Common.cs#L31) and `No root changeset found` consequently. It seems not hard to fix if I didn't miss something crucial - just not anticipated possibility. – Ivan Danilov Dec 07 '12 at 01:38
  • 1
    Yes, it's a case that could not be managed with init-branch. In fact the clone should be done from $/A/B (the trunk branch) and the init-branch will done with $/A/B2/ (or with the option --all) and it will work... – Philippe Dec 07 '12 at 11:23
  • Yeah, but the TFS repository is poorly structured and `$/A/B` folder is large and contains many binary files which is not good for git. Moreover I just don't want to get several GB for nothing :) Thus I would prefer to make some change to init-branch command logic. I'll make a pull request when I'm done and tested. – Ivan Danilov Dec 07 '12 at 12:35
0

Any gateway to move away from tfs for source control is awesome.

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141