https://github.com/kkirsche/gitnore
A tool to list, view, and download gitignore files from https://github.com/github/gitignore
https://github.com/kkirsche/gitnore
Last synced: 8 months ago
JSON representation
A tool to list, view, and download gitignore files from https://github.com/github/gitignore
- Host: GitHub
- URL: https://github.com/kkirsche/gitnore
- Owner: kkirsche
- License: apache-2.0
- Created: 2019-03-21T01:08:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-08-12T20:48:42.000Z (almost 4 years ago)
- Last Synced: 2025-01-17T01:12:32.975Z (over 1 year ago)
- Language: Go
- Homepage: https://github.com/github/gitignore
- Size: 6.33 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitnore
Are you tired of choosing overly bare .gitignore files from Github's interface? So was I. That's why I made gitnore, a tool to list, view, and download gitignore files from https://github.com/github/gitignore and merge the contents of the files you choose into your gitignore, allowing you to build full featured, rich .gitignore files quickly and easily.
## Installation
### From Source
```
$ go install github.com/kkirsche/gitnore@latest
```
## Usage
### Initialization
If you want to provide your personal access token via the CLI, you can initialize your configuration using:
```
$ gitnore init -t="example-personal-access-token"
```
This though has some security concerns if on a shared machine, and as such you can instead use the following command to be prompted:
```
$ gitnore init
```
### Updating Your Token
You can either manually edit your configuration file, or use the `writeConfig` command.
**WARNING: This will overwrite your configuration file!**
```
$ gitnore writeConfig
```
## List Available Gitignore Files
```
$ gitnore list
```
## Preview Gitignore File Content
```
$ gitnore preview gitignore-file-name
```
for example:
```
$ gitnore preview Go
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
```
## Add a Gitignore File's Contents to Your Local Gitignore File
```
$ gitnore add gitignore-file-name
```