An open API service indexing awesome lists of open source software.

https://github.com/czheo/gitignorepy

fetch gitignore file from Github.com
https://github.com/czheo/gitignorepy

git gitignore

Last synced: 5 months ago
JSON representation

fetch gitignore file from Github.com

Awesome Lists containing this project

README

          

# gitignorepy
fetch gitignore file from https://github.com/github/gitignore

# Install

```
pip install gitignorepy
```

# Usage

fetch macos gitignore file and store it
```
$ gg fetch macos >> ~/.gitignore
```

fetch gitignore file for rust
```
$ gg fetch rust
# Generated by Cargo
# will have compiled files and executables
/target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here http://doc.crates.io/guide.html#cargotoml-vs-cargolock
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk
```

list all available gitignore files
```
$ gg list
- Actionscript
- Ada
- Agda
- Android
...
- WordPress
- Xcode
- XilinxISE
- Xojo
- Yeoman
- Yii
- ZendFramework
- Zephir
- macOS
Found 182 templates.
```

fuzzy search gitignore files containing `"ru"`
```
$ gg list ru
- Drupal
- Lazarus
- Ruby
- Rust
Found 4 templates.
```