https://github.com/wesleimp/gitignore
.gitignore generator for terminal
https://github.com/wesleimp/gitignore
cli git gitignore go
Last synced: about 2 months ago
JSON representation
.gitignore generator for terminal
- Host: GitHub
- URL: https://github.com/wesleimp/gitignore
- Owner: wesleimp
- License: mit
- Created: 2020-09-01T14:07:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T18:14:00.000Z (almost 6 years ago)
- Last Synced: 2025-05-21T02:08:34.023Z (about 1 year ago)
- Topics: cli, git, gitignore, go
- Language: Go
- Homepage: https://wesleimp.github.io/gitignore/
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# gitignore

.gitignore generator for terminal
## Install
### Pre-compiled binary
**shell script**
```sh
curl -sf https://gobinaries.com/wesleimp/gitignore | sh
```
**manually**
Download the pre-compiled binaries from the [releases page](https://github.com/wesleimp/gitignore/releases) and copy to the desired location
### Docker
```sh
$ docker run -it --rm wesleimp/gitignore list
```
### Compiling from source
Clone the repository
```sh
$ git clone git@github.com:wesleimp/gitignore.git
$ cd gitignore
```
download dependencies
```sh
$ go mod download
```
build
```sh
$ go build -o gitignore main.go
```
verify it works
```sh
$ gitignore --help
```
## Usage
**list templates**
```sh
$ gitignore list
```
**generate**
```sh
$ gitignore generate --lang Go --lang yarn
```
**generate in another workspace**
```sh
$ gitignore generate --lang Go --lang yarn --path ./my/another/workspace
```
**append new language**
```sh
$ gitignore append --lang Go
```
**append new custom text**
```sh
$ gitignore append --text "mybin.exe"
```
## License
[MIT](https://github.com/wesleimp/gitignore/blob/master/LICENSE)