How can I push my existing Git repository to Team Foundation Service

McKay picture McKay · Feb 28, 2013 · Viewed 25.4k times · Source

Microsoft now has support for Git repositories on their Team Foundation Service. I have an account on Team Foundation Service, and I'd like to push my existing Git repository to a project there.

Whenever I try to do searches, I keep finding things like TFS-GIT, or GIT-TF. I'm pretty sure I don't want those, as I think those change to the Team Foundation Server model for code repositories, and that's not what I want.

Specifically, I have an existing Git repository that I want to push to TFService.

Answer

McKay picture McKay · Mar 3, 2013

Okay, I was apparently overcomplicating this. Here's what I did.

  1. Created a new project in TFService
  2. Connected to that project in Visual Studio
  3. Cloned that project in Visual Studio
  4. git pull c:\source\oldGitProject

That was it, it pulled all of the changes from the old location, and I could push that up to TFService easily.