Publish local Git repository to Team Foundation Service

前端 未结 12 649
灰色年华
灰色年华 2020-12-13 14:33

About a week ago Git support was added to Visual Studio 2012 and Team Foundation Service. I\'ve been playing around with it a bit and wanted to publish a local repository to

12条回答
  •  粉色の甜心
    2020-12-13 15:19

    In the Team Explorer window find your repository under Local Git Repositories. Right click on the one you want to change and pick Open Command Prompt. Now type git remote -v and it should show you the remote name and the complete url for it. type git remote remove origin assuming origin is the name of your remote repository. Then git remote add origin [url] replacing [url] with the actual url of your repository.

    Now you should be able to push your master branch into the repository for your team project.

提交回复
热议问题