#exclude #gitignore #git #ignore #git-repository #cli

app git-local-ignore

Locally exclude files from being tracked by Git (without adding them to .gitignore)

2 releases (1 stable)

1.0.0 Mar 17, 2021
0.1.0 Jul 6, 2020

#10 in #exclude

MIT/Apache

14KB
271 lines

git-local-ignore

This command-line utility lets you manipulate .git repository's info/exclude file, which works like .gitignore but is completely local and not included in the repository itself.

Learn more about .git/info/exclude

Installation

cargo install git-local-ignore

Or using brew on macOS:

brew install vpukhanov/tools/git-local-ignore

Usage

# Add files to exclude list
git-local-ignore filename1 filename2

# Add multiple files to exclude list using glob pattern
git-local-ignore filename*.txt

# Add glob pattern itself to exclude list
git-local-ignore filename\*.txt

# Display entries in the exclude list
git-local-ignore --list

# Clear the exclude list
git-local-ignore --clear

# Display help
git-local-ignore --help

Dependencies

~4–15MB
~144K SLoC