Bill Noel
Bill Noel

Reputation: 1150

VSCode Flutter - stop tracking Flutter repo changes

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

Upvotes: 25

Views: 2346

Answers (2)

felix-ht
felix-ht

Reputation: 2075

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

Upvotes: 33

Pavel
Pavel

Reputation: 694

  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

Upvotes: 9

Related Questions