#gitignore #ignore #git #interactive #clap

app kignore

kignore is a tool for easily adding patterns to .gitignore and cleaning up afterwards

5 unstable releases

0.4.0 Dec 22, 2024
0.3.0 Dec 22, 2024
0.2.4 Dec 22, 2024
0.1.3 Dec 22, 2024
0.1.1 Oct 20, 2022

#258 in Command-line interface

Download history 5/week @ 2024-09-21 13/week @ 2024-12-07 3/week @ 2024-12-14 537/week @ 2024-12-21 21/week @ 2024-12-28 1/week @ 2025-01-04

562 downloads per month

MIT license

15KB
298 lines

Git ignore (kignore)

Is an extension for easily adding ignored files to .gitignore files, when added it will by default also try to remove any files matching the pattern added to .gitignore, this is by default also run in interactive mode, giving you the option to confirm or deny

$ kignore 'node_modules/'
found .gitignore .../some-path/.gitignore
Added node_modules/ to .gitignore
Removed node_modules/ from git index
$ git ignore 'node_modules/'
found .gitignore .../some-path/.gitignore
Added node_modules/ to .gitignore
Removed node_modules/ from git index

Installation

Cargo

Cargo will only pull the kignore command and won't add a subcommand to `git.

$ cargo install kignore
$ cargo binstall kignore # binstall will warn that git.front.kjuulh.io isn't a valid repo, it is still installable though

Post install

To get the git ignore subcommand working you will need to have the file git-ignore available on your path

# zsh
eval "kignore init zsh"

# shell
eval "kignore init sh"

# bash
eval "kignore init bash"

Dependencies

~9–17MB
~195K SLoC