Migrate local Git repo to Visual Studio Online from IDE

后端 未结 2 1077
不思量自难忘°
不思量自难忘° 2020-12-31 21:43

I created a new Team Project on Visual Studio Online that I have connected to in Visual Studio 2013. Using the IDE, I cloned a local Git repo (that was pulled down from GitH

2条回答
  •  无人及你
    2020-12-31 22:15

    This publish option is only shown when you are connected to a Team Project and when the remote uri of the git repository is set to the TFS uri.

    To fix this you can manually edit the git files, but I tend to open the Git Command Prompt (right-click the repo and choose Open Command prompt.

    On the command line enter:

    git remote set-url origin http://[server]:[port]/tfs/[projectcollection]/_git/[ProjectName]

    git pull

    [[ resolve any merge issues ]]

    git push

提交回复
热议问题