LinuxCommandLibrary

gitnr

Create .gitignore files from templates

TLDR

Create .gitignore for current directory
$ gitnr
copy
Create .gitignore for specific language
$ gitnr rust
copy
Create .gitignore with multiple templates
$ gitnr rust python node
copy
List available templates
$ gitnr --list
copy

SYNOPSIS

gitnr [options] [templates]

DESCRIPTION

gitnr creates .gitignore files using templates from the GitHub gitignore repository. It supports hundreds of templates for different languages, frameworks, and tools.
The tool fetches templates from GitHub's official gitignore repository and combines multiple templates when needed.

PARAMETERS

-l, --list

List all available templates
-s, --search QUERY
Search for templates
-a, --append
Append to existing .gitignore
-o, --output FILE
Output to specific file
-f, --force
Overwrite existing file
-v, --version
Display version and exit
-h, --help
Display help and exit

AVAILABLE TEMPLATES

Common templates include:
- Languages: rust, python, node, go, java
- IDEs: vscode, intellij, vim
- Tools: docker, terraform, ansible
- OS: macos, windows, linux

CAVEATS

Requires internet connection to fetch templates. GitHub API rate limits may apply. Some templates may need customization for specific project needs.

HISTORY

gitnr was created as a convenient way to generate .gitignore files without browsing the GitHub repository manually.

SEE ALSO

[gitignore](https://git-scm.com/docs/gitignore), [gitignore.io](https://www.toptal.com/developers/gitignore)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard