24

I can't figure out when this started, but suddenly I find my repo tracking all my changes just fine, but...

There's another repo open - like the entire Flutter source - and my source control is tracking thousands of changes.

Is there some easy way to turn this off? I can't seem to find it.

TIA

Bill Noel
  • 1,120
  • 9
  • 21

2 Answers2

31

The solution is to add the path to the flutter repo to the "git.ignoredRepositories" list either in the user or workspace settings.

"git.ignoredRepositories": [
        "/path/to/flutter"
    ]

I had to reload/restart the vscode window for it to take effect.

--

An alternative is to change git.AutoRepositoryDetection from true to subFolders. This will keep scanning the current folder and sub folders but avoids tracking flutter.

git.AutoRepositoryDetection

felix-ht
  • 1,697
  • 15
  • 16
9
  1. In VS Code hit Ctrl+Shift+P
  2. Type and select User Settings
  3. In the search field enter git.AutoRepositoryDetection
  4. select field to false

enter image description here

Pavel
  • 565
  • 6
  • 19