Git Exclude - Local [Beta]Local Git Ignore Rules, One Right-Click Away Tired of messy What is
|
.gitignore |
.git/info/exclude |
|
|---|---|---|
| Tracked in repo | Yes | No |
| Shared with team | Yes | No |
| Use case | Project-wide rules | Personal/local rules only |
What Happens Under the Hood
When you right-click and select Add to .git/exclude, the extension:
- Resolves the path: Calculates the relative path from your workspace root to the selected file or folder
- Normalizes slashes: Converts any Windows backslashes (
\) to forward slashes (/) for Git compatibility - Detects directories: Appends a trailing
/automatically if the selected item is a folder - Checks for duplicates: Reads the existing exclude file and skips writing if the path is already present
- Appends the entry: Writes the path to
.git/info/exclude(creating the file with a standard Git header if it doesn't exist yet)
Storage Location
Git Exclude - Local writes to the standard Git exclude file inside your repository:
- Location:
.git/info/excludeat the root of your workspace - Private by default: This file is never tracked or committed — it exists only on your machine
- Manually editable: You can open and edit the file directly at any time if needed
Tips & Tricks
- Use for generated files: Local build artifacts or tool outputs that shouldn't be in
.gitignoreare perfect candidates - Works on folders: Right-click a whole folder (like
tmp/orscratch/) to exclude everything inside it at once - Safe to re-run: Running the command on an already-excluded path does nothing — no duplicate entries
Support the Project
If Git Exclude - Local has made your workflow easier, consider supporting (No Pressure):
Need Help?
- Issues: Found a bug or have a feature request? Open an issue on GitHub
- Repository: github.com/inandi/git-exclude
License
This project is licensed under the MIT License - feel free to use it however you'd like!
Made with ❤️ by Gobinda Nandi