Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git Hush – Ignore & ExcludeNew to Visual Studio Code? Get it now.
Git Hush – Ignore & Exclude

Git Hush – Ignore & Exclude

munr0

|
2 installs
| (0) | Free
Jump between .gitignore and your private .git/info/exclude, and quickly move rules across. Right-click any file to ignore it from the context menu. Supports .gitattributes too.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Hush – Ignore & Exclude

A Visual Studio Code extension to hide files from Git with a right-click – just for you, or for everyone.

Every Git repo has a private ignore file, .git/info/exclude, that works like .gitignore but is never committed. It's perfect for your own scratch files, notes, and editor clutter. Git Hush makes it as easy to use as .gitignore.

Features

  • Jump between .gitignore and its private counterpart with one click
  • Move a rule from one file to the other with a 💡︎ quick fix
  • Ignore files and folders from the Explorer right-click menu – click again to un-ignore
  • Works with .gitattributes and its private counterpart, .git/info/attributes

Handles multiple selections, keeps rules sorted, never adds duplicates, and works in worktrees and submodules.

Usage

Ignore (and un-ignore) a file

Right-click any file or folder in the Explorer and open the Ignore submenu:

  • Ignore Locally – adds it to .git/info/exclude, so it's hidden on your machine only
  • Ignore for Everyone – adds it to .gitignore, so it's hidden for everyone

Both options are toggles: if the path is already listed in that file, the same option removes it.

Ignore submenu in the Explorer context menu

Jump between files

Open .gitignore and click Open .git/info/exclude at the top of the file. The exclude file has a matching link back. The same links work between .gitattributes and .git/info/attributes. Missing files are created for you.

CodeLens link at the top of .gitignore

Move a rule

Put your cursor on any rule in .gitignore, press Ctrl+. (Cmd+. on macOS), and choose Move rule to local exclude. From the exclude file, the quick fix moves it back.

Move rule quick fix in .gitignore

Settings

  • gitHush.showInContextMenu – toggle the Ignore submenu in the Explorer (default: on)

Tip

Install Syler.ignore for syntax highlighting in these files.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft