Shell Script and Git alias to select and install a remote .gitignore
template.
curl -O -L -P /path/to/dir https://raw.githubusercontent.com/mc7h/git-ignore/main/git-ignore
chmod +x /path/to/dir/git-ignore
Note
git will auto-detect ignore
as a subcommand if git-ignore
is in the PATH.
git ignore [query]
Set FORCE_GI_PULL=1
to ensure the gitignore cache is updated.
- Interactively filter available templates.
- Provide filter at call-site.
- Auto-selects if there's only one match.