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
- Host: GitHub
- URL: https://github.com/czheo/gitignorepy
- Owner: czheo
- Created: 2017-01-07T06:34:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T10:39:38.000Z (over 3 years ago)
- Last Synced: 2025-07-06T03:40:38.758Z (12 months ago)
- Topics: git, gitignore
- Language: Python
- Homepage: https://github.com/github/gitignore
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.
```