Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
/ git-local-ignore Public archive

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

vpukhanov/git-local-ignore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages