Skip to content

Git ignore

sondr3/git-ignore

  • GitHub
  • Rust
  • Automatic matching !
  • Uses templates from TopTal (www.gitignore.io)
  • Config: ~/.config/git-ignore/

Do you have a package.json and Cargo.toml in the current directory? --auto will automatically add node and rust to the template output.

Install (beware, the AUR package lacks behind !):

pamac install git-ignore

Usage

Update cache:

git ignore -u

List templates:

git ignore --list

Output auto-matching .gitignore template:

git ignore -a -w

Issues: Doesn't work, git ignore -a always prints the usage.

gitnr

  • GitHub
    • Rust
    • Create .gitignore files using one or more templates from TopTal (www.gitignore.io), GitHub or your own collection
    • Interactive selection TUI

Install:

pamac install gitnr-bin

Interactive usage:

gitnr search

ignr

  • GitHub
  • Rust
  • Can merge different templates

gitignore.io

Setup a custom function:

gi () {
    curl -sLw "\n" "https://www.toptal.com/developers/gitignore/api/$@"
}

Usage

List available templates:

gi list

Use the node gitignore template:

gi node > .gitignore

Other

  • github/gitignore
    • Only templates, no cli tool
  • ignoreit
    • Can only handle one template, no merging
    • Rust
  • sondr3/git-ignore
    • Uses templates from gitignore.io
  • gibo
    • Can only handle one template, no merging
  • downjack
    • Interactive selection tool
    • Can only handle one template, which gets appended to an existing .gitignore file
  • gitignore-downloader
    • Can only handle one template, which gets appended to an existing .gitignore file

Stale