VSCode Flutter - stop tracking Flutter repo changes

326

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

Share:
326
Bill Noel
Author by

Bill Noel

Updated on December 18, 2022

Comments

  • Bill Noel
    Bill Noel over 1 year

    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

  • Kohls
    Kohls over 2 years
    Works flawlessly, unfortunately needs a restart in vscode
  • David
    David almost 2 years
    "git.autoRepositoryDetection": false. Even simpler as you don't need path
  • stackunderflow
    stackunderflow almost 2 years
    i hate vscode. how to do without it?
  • felix-ht
    felix-ht almost 2 years
    @David this is not a good idea because usually users want git repos within the workspace folder to be detected.
  • David
    David almost 2 years
    @felix-ht, you are right but that was excactly what I wanted to do in my case