Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garnertb/gh-gitignore
Load gitignore files from GitHub into your project.
https://github.com/garnertb/gh-gitignore
cli extension-gh gh gitignore-cli gitignore-files gitignore-generator go
Last synced: 2 months ago
JSON representation
Load gitignore files from GitHub into your project.
- Host: GitHub
- URL: https://github.com/garnertb/gh-gitignore
- Owner: garnertb
- License: other
- Archived: true
- Created: 2022-12-10T21:49:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T16:07:46.000Z (9 months ago)
- Last Synced: 2024-08-03T21:02:25.036Z (5 months ago)
- Topics: cli, extension-gh, gh, gitignore-cli, gitignore-files, gitignore-generator, go
- Language: Go
- Homepage:
- Size: 556 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gh-cli-extensions - **gitignore** - Load gitignore files from GitHub into your project. (Github)
README
# gh gitignore
>[!TIP]
> You can now use the gitignore api endpoint and a gh alias to achieve the same result as this project:
>
> ```bash
> $ gh alias set --shell .gitignore 'gh api -X GET /gitignore/templates/"$1" --jq ".source"'
> $ gh .gitignore Terraform >> .gitignore
> ```This `gh` extension enables developers to quickly bootstrap new projects with the appropriate `.gitignore` through a CLI interface.
## Install
```bash
gh extension install garnertb/gh-gitignore
```## Examples
Bootstrap a node project with the [nodejs gitignore](https://github.com/github/gitignore/blob/main/Node.gitignore).
```bash
gh gitignore node > .gitignore
```## What types of projects does this extension support?
`gh gitignore` currently supports the following gitignore flavors:
al, actionscript, ada, agda, android, appengine, appceleratortitanium, archlinuxpackages, autotools, c++, c, cfwheels, cmake, cuda, cakephp, chefcookbook, clojure, codeigniter, commonlisp, composer, concrete5, coq, craftcms, d, dm, dart, delphi, drupal, episerver, eagle, elisp, elixir, elm, erlang, expressionengine, extjs, fancy, finale, flaxengine, forcedotcom, fortran, fuelphp, gwt, gcov, gitbook, go, godot, gradle, grails, haskell, igorpro, idris, jboss, jenkins_home, java, jekyll, joomla, julia, kicad, kohana, kotlin, labview, laravel, leiningen, lemonstand, lilypond, lithium, lua, magento, maven, mercury, metaprogrammingsystem, nanoc, nim, node, ocaml, objective-c, opa, opencart, oracleforms, packer, perl, phalcon, playframework, plone, prestashop, processing, purescript, python, qooxdoo, qt, r, ros, racket, rails, raku, rhodesrhomobile, ruby, rust, scons, sass, scala, scheme, scrivener, sdcc, seamgen, sketchup, smalltalk, stella, sugarcrm, swift, symfony, symphonycms, tex, terraform, textpattern, turbogears2, twincat3, typo3, unity, unrealengine, vvvv, visualstudio, waf, wordpress, xojo, yeoman, yii, zendframework, zephir