gib65
gib65

Reputation: 151

Migrated from git to team server; still getting git errors

We just migrated from git to Team Server. It seems to have gone smoothly. But I'm still getting this error message from git:

git error message

How can I configure my source control to stop looking for a git repository?

Upvotes: 0

Views: 26

Answers (3)

Marina Liu
Marina Liu

Reputation: 38136

There are two ways to migrate git to VSTS/TFS.

First you need to create an empty git repo on VSTS/TFS. Then use any of below ways:

Option 1: add remote for your local git repo

# In your local remote
git remote add origin <URL for VSTS/TFS empty git repo>
git push -u origin master
# If you have other branches, still use git push -u origin branchname

Option 2: use visual studio

In team explorer -> click add for local repo -> select your local path -> Add -> double click the local repo to open it in VS -> Settings -> Repository Settings -> add remote -> input VSTS/TFS git repo URL fir fetch -> save -> publish branch -> push.

enter image description here

Upvotes: 0

Nick Tsai
Nick Tsai

Reputation: 4139

You can check if there has .git folder in your project directory. If not, you need to reset or just clone for a new one.

git clone <your new repository URL>

Upvotes: 0

Mohd Aslam
Mohd Aslam

Reputation: 66

It seems that there is a reference somewhere in the project files that still points to Git Repository, which I guess needs to be removed manually, even though the migration has gone smoothly, it doesn't mean that all the files are updated! Worth a shot...

Upvotes: 1

Related Questions