Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Ignore Tracked FilesNew to Visual Studio Code? Get it now.

Git Ignore Tracked Files

Jordan Knight

|
2,258 installs
| (1) | Free
Allows you to quickly stop checking in files that you want in your git repo, but don't want *new* changes in your repo like .env files or other configs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Ignore Tracked Files extension README

Ever wanted to check in a .env file or a config.yaml file as a template for others, then change that file with your own local settings without ever checking it in again?

Well this extension allows you to do that!

It's based on the git command git update-index --skip-worktree. This command let's you basically ignore a file that's already been tracked, thus never checking it in again.

Features

Open the file you want to stop tracking in VS Code and run Git: Ignore this tracked file from now (--skip-work-tree).

You can of course undo this but running the Git: Include this file from now (track it again and undo --skip-work-tree).

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft