https://github.com/kjuulh/gitignore
Git ignore (kignore) is a utility tool for easily adding entries to .gitignore files, and cleaning up afterwards
https://github.com/kjuulh/gitignore
enhancement git ignore rust utility
Last synced: 3 months ago
JSON representation
Git ignore (kignore) is a utility tool for easily adding entries to .gitignore files, and cleaning up afterwards
- Host: GitHub
- URL: https://github.com/kjuulh/gitignore
- Owner: kjuulh
- License: mit
- Created: 2022-10-20T22:28:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-03-14T04:34:17.000Z (4 months ago)
- Last Synced: 2026-03-14T13:34:39.912Z (4 months ago)
- Topics: enhancement, git, ignore, rust, utility
- Language: Rust
- Homepage: https://git.front.kjuulh.io/kjuulh/gitignore
- Size: 132 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# 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
```bash
$ kignore 'node_modules/'
found .gitignore .../some-path/.gitignore
Added node_modules/ to .gitignore
Removed node_modules/ from git index
```
```bash
$ 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.
```bash
$ 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"
```