How to move a project from Git to TFS in Visual Studio

user2900166 picture user2900166 · Sep 13, 2014 · Viewed 39.6k times · Source

I have a project that I've been working on for some time now and I just cannot make Git work for me. I've spent a day trying to recover lost code and I am done with Git.

Can anyone tell me how to move an existing project into TFVC? I have a Visual Studio Online account with a TFVC project all set up for this task, but I cannot figure out how to change the source control settings so that the project is no longer tied to Git.

I am currently developing on VS 2013.

Any help is greatly appreciated!

Answer

Horizon_Net picture Horizon_Net · Sep 14, 2014

Just delete the .git folder (this one is normally hidden) in the root folder (f.e. via Windows Explorer). This deletes all things related to git. After that add the code to your TFS project and check it in into TFS.