https://github.com/sudorook/ignoretool
Tool for creating and updating .gitignore files.
https://github.com/sudorook/ignoretool
gitignore gitignore-generator
Last synced: 3 months ago
JSON representation
Tool for creating and updating .gitignore files.
- Host: GitHub
- URL: https://github.com/sudorook/ignoretool
- Owner: sudorook
- Created: 2023-10-07T06:33:04.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T02:21:25.000Z (over 1 year ago)
- Last Synced: 2025-03-19T02:09:49.951Z (over 1 year ago)
- Topics: gitignore, gitignore-generator
- Language: Shell
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/GPL-3.0-or-later.txt
Awesome Lists containing this project
README
# .gitignore Tool
Bash script for maintaining and standardizing .gitignore files using the
program-specific files available at
[github/gitignore](https://github.com/github/gitignore).
## Usage:
```sh
ignoretool -w -k -f
```
### Arguments:
#### `` (required):
1. `add` - add a new section to an existing .gitignore file.
2. `create` - initialize a new .gitignore file from a list of preset or selected
sections.
3. `list` - list the sections found in a `.gitignore` file.
4. `remove` - remove a particular section (or list of sections).
5. `update` - parse existing file and updating the sections present in the file.
#### `` (optional):
The list is a comma- or space-delimited list of gitignore configurations. To see
what the names of each are, look at the `data` file for reference.
If no list options are given, the script will open a `fzf` prompt for you to
specify which ignore files to use.
#### `-w` or `--write` (optional)
The script will print to `stdout` by default. To write to the gitignore file
itself, pass the `-w` flag to the script.
#### `-k` or `--keep` (optional)
Use `-k` in conjunction with `-w` to backup the existing .gitignore before
writing the new one. Should be unnecessary if the file is already versioned.
#### `-f ` (optional)
Use the `-f` flag to specify the path to the .gitignore file.
If no file is specified, the script will use Git to find the base of the
repository and search f the .gitignore file there.