Glee is a command-line utility that simplifies the management of Git's local exclude patterns. It provides an intuitive interface for manipulating the .git/info/exclude
file, which functions similarly to .gitignore
but remains entirely local and is not shared with the repository.
Learn more about .git/info/exclude in the Git documentation
# Add specific files to the exclude list
glee add filename1 filename2
# Add multiple files using a glob pattern
glee add *.txt
# Add a glob pattern itself to the exclude list (escaping the special character)
glee add \*.txt
# Remove specific files from the exclude list
glee remove filename1 filename2
# Remove multiple files using a glob pattern
glee remove *.txt
# Remove a glob pattern itself from the exclude list (escaping the special character)
glee remove \*.txt
# Display current entries in the exclude list
glee list
# Clear all entries from the exclude list
glee clear
# Open the exclude file in your default text editor
glee edit
# Display help and available commands
glee help
If you have Homebrew installed, you can install glee using:
brew install vpukhanov/tools/glee
To update glee to the latest version:
brew upgrade glee
If you have Go installed on your system, you can install glee
directly using the go install
command:
go install github.com/vpukhanov/glee@latest
This will download the source code, compile it, and install the glee
binary in your $GOPATH/bin
directory. Make sure your $GOPATH/bin
is added to your system's PATH
to run glee
from anywhere.
- Visit the Releases page of the repository.
- Download the archive for your operating system and architecture.
- Extract the archive:
- On macOS: Double-click the .zip file or use
unzip glee_*_Darwin_*.zip
- On Linux:
tar -xzf glee_*_Linux_*.tar.gz
- On Windows: Extract the .zip file using File Explorer or a tool like 7-Zip
- On macOS: Double-click the .zip file or use
- Move the
glee
binary to a directory in your system'sPATH
.
To build glee
from source:
- Clone the repository:
git clone https://github.com/vpukhanov/glee.git
- Navigate to the project directory:
cd glee
- Build the project:
go build
- (Optional) Move the resulting
glee
binary to a directory in yourPATH
.
After installation, you can verify that glee
is installed correctly by running:
glee version
This should display the version of glee
you have installed.
If you have any questions or need further clarification, feel free to open an issue for discussion.