34 lines
732 B
Markdown
34 lines
732 B
Markdown
# Git ignore
|
|
|
|
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
|
|
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 `gitignore` command and won't add a subcommand to `git.
|
|
|
|
```bash
|
|
$ cargo install kjuulh/gitignore
|
|
```
|
|
|
|
### Homebrew
|
|
|
|
TBA
|