getignore is a command-line tool to simplify the management of .gitignore files in your Git repositories. With getignore, you can easily create or update .gitignore files based on programming languages or platforms.
- Generate
.gitignorefiles for any programming language or platform. - Append or overwrite existing
.gitignorefiles. - Easy-to-use command-line interface.
- Works directly in the root of your Git repositories.
- Clone the repository:
git clone https://github.com/yourusername/getignore.git- Build the project with make:
make build- Use the binary wherever you want
getignore [OPTIONS]Option Description
| Option | Description |
|---|---|
| --lang | Specify the programming language or platform for the .gitignore template (required). |
| --ow | overwrite the existing .gitignore file if it exists. If omitted, appends to the file. |
| -h, --help | Show the help menu and exit. |
| -all | Print all available programming languages and platforms |
- Append a Python .gitignore template to the existing .gitignore:
getignore --lang=python- Overwrite the .gitignore file with a Go template:
getignore --lang=go --owShow the help menu:
getignore --help- Notes: The tool must be run in the root directory of a Git repository. If the --lang flag is missing, the program will exit with an error.