Go to file
Kasper Juul Hermansen 8003a98d83
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
Update Rust crate clap to 4.5.4
2024-03-25 21:52:10 +00:00
.github/workflows add completion script to homebrew 2022-10-21 11:55:37 +02:00
ci With executable rights 2022-10-21 01:47:18 +02:00
crates/gitignore_inner Update Rust crate clap to 4.5.4 2024-03-25 21:52:10 +00:00
git-alias add completion script to homebrew 2022-10-21 11:55:37 +02:00
pkg/brew trying without alias 2022-10-21 12:08:23 +02:00
scripts Added scripts for installing command 2022-10-21 00:23:12 +02:00
src Fixed publish 2022-10-21 00:45:57 +02:00
.drone.yml Add .drone.yml 2022-10-26 16:16:03 +02:00
.gitignore Added scripts for installing command 2022-10-21 00:23:12 +02:00
Cargo.lock Update Rust crate clap to 4.5.4 2024-03-25 21:52:10 +00:00
Cargo.toml Update Rust crate eyre to 0.6.12 2024-01-31 16:55:09 +00:00
HomebrewFormula added brew formula 2022-10-21 01:27:57 +02:00
LICENSE-MIT with license 2022-10-21 02:00:19 +02:00
README.md install via. homebrew 2022-10-21 02:48:58 +02:00
renovate.json Add renovate.json 2022-10-25 20:50:32 +00:00

README.md

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

Post install

To get the git ignore subcommand working you will need to have the file git-ignore available on your path, either add it yourself using git-alias/git-ignore as a template or:

git clone https://github.com/kjuulh/gitignore
./scripts/install-git-alias.sh # only tested on mac and linux

Homebrew

Added in HomebrewFormula

$ brew tap kjuulh/gitignore  https://github.com/kjuulh/gitignore
$ brew install kjuulh/gitignore/kignore-bin