0xsegfault
0xsegfault

Reputation: 3161

VS Code to tracking changing to the wrong Repo

I have copy of VS Code that is tracking far too many changes than I have made. It also references a repo that I cloned a file from.

enter image description here

I need to fix this, as I am unable to commit anything via the UI.

Upvotes: 0

Views: 3101

Answers (1)

Dan Lowe
Dan Lowe

Reputation: 56518

Most likely one of two things has happened.

  1. You opened a folder which is it not itself a git repository, but which contains numerous git repositories.

  2. You opened a git repository which, for whatever reason, has other git repositories nested inside it.

In either case, VS Code will recursively find all of the inner repositories, and check for pending changes in all of them.

Upvotes: 1

Related Questions