CyberNinja
CyberNinja

Reputation: 864

Switch Visual Studio Solution source control from github and use tfs

I always use TFS for source control, last week I gave github a try and use that for testing. Now I want to sync and use TFS with my solution. Everytime I open the solution it connects to github, I tried disconnecting it and connect to my tfs workspace. But won't let me. I tried right clicking the solution > source control, there's no option..

well I guess I have to download and then use the new solution to sync to tfs or use git-tfs.

Thank you in advance

Upvotes: 0

Views: 80

Answers (1)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31075

You can install Git-TF, then run the following commands:

  1. configure your GIT repository:

--

http://myserver:8080/tfs/mycollection $/TeamProjectA/Main
  1. Check in the files:

--

git tf checkin --deep

————————

Update:

If you don't need history, you can try to unbind the source control from GitHub by going to the solution folder, delete .git folder (hidden folder), .gitattributes file and .gitignore file. Then commit the solution into TFS.

Upvotes: 1

Related Questions