Crates.io | git-local-ignore |
lib.rs | git-local-ignore |
version | 1.0.0 |
source | src |
created_at | 2020-07-06 11:00:54.622504 |
updated_at | 2021-03-17 15:25:53.234889 |
description | Locally exclude files from being tracked by Git (without adding them to .gitignore) |
homepage | https://github.com/vpukhanov/git-local-ignore |
repository | https://github.com/vpukhanov/git-local-ignore |
max_upload_size | |
id | 261910 |
size | 37,870 |
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
cargo install git-local-ignore
Or using brew
on macOS:
brew install vpukhanov/tools/git-local-ignore
# 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