GitIgnore CLI is a command-line tool that helps you create and manage .gitignore files for your projects.
It allows you to easily download updated .gitignore files from github.com/github/gitignore.
Install the tool using go install:
go install github.com/cassiofariasmachado/gitignore-cli@latestℹ️ Make sure your Go bin directory (usually
$GOPATH/bin) is in your PATH environment variable.
Run the tool with:
gitignore-cli --name Go --path /path/where/save/gitignore-
--name: The name of the language or framework you want to create a.gitignorefile for. It must match the name of the file in the repository. Examples: Go, Python, Java, etc.- Required:
No - Default:
""
- Required:
-
--debug: Enables debug mode. This will print additional information to the console, such as the URL being used to download the.gitignorefile and the path where it will be saved.- Required:
No - Default:
false
- Required:
-
--path: The path where the.gitignorefile will be saved. If not provided, the file will be saved in the current directory with the default name.- Required:
No - Default:
.gitignore
- Required: