1

I am migrating to from TFS to Git and using Git-tfs. I have managed to download the source code from the TFS Server for all branches.

The main branch ($/Project/Main) is fine and works but one of the branch (fs) that was created off the main does not have all the check-ins. I did try a git-tfs pull but no luck.

The problem branch has this history.

  • c180 - Branched from $/Project/A
  • c181 - Deleted the branch
  • c182 - Branched from $/Project/Main

The branch fs only have up-to c180 - Branched from $/Project/A and nothing after this. The command I ran:

git tfs clone tfs:8080/tfs/DefaultCollection $/Project/fs

Is there a way or a workaround to pull the rest of the commits on the branch fs.?

Please advise?

Kyle Burkett
  • 1,375
  • 12
  • 28
user1754675
  • 887
  • 13
  • 32
  • Can you add the related command to show what did you do? – PatrickLu-MSFT Jun 10 '16 at 09:45
  • git tfs clone http://tfs:8080/tfs/DefaultCollection $/some_project – user1754675 Jun 10 '16 at 12:22
  • @PatrickLu-MSFT based on your own answer you posted **earlier** you know the history is nested inside the changeset for the branch in the gui only, it seems clear that he's asking how to retrieve that in his git history: https://stackoverflow.com/questions/36482439/create-new-tfs-branch-with-history/36495586#36495586 – Kyle Burkett Nov 06 '18 at 20:07

1 Answers1

-1

Try running this command from the folder of "fs" branch:

git-tfs pull -c=181
Eddie Chen - MSFT
  • 29,708
  • 2
  • 46
  • 60