Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Generate .gitignore templates from the command line

Project description


PyPI Latest Version Build Status

A CLI to create .gitignore files, to keep your source control so fresh and clean.



$ pip install -U gig

Or, run it with pipx:

$ pipx run gig --help


In the shell. . .

$ gig Python Ruby > .gitignore

Or, programmatically, in Python. . .

>>> import gig
>>> gig.generate_gitignore(["Clojure"])
u'\n### Clojure ###\nLeiningen.gitignore'

You can also generate global .gitignore_global files. For more info, see here.

$ gig macOS VisualStudioCode --global > ~/.gitignore_global

To get a list of available templates. . .

$ gig list
$ gig list --global

For more help, run gig --help.


  • Python >= 3.6
  • Internet connection


MIT Licensed.


1.1.0 (2019-06-30)

  • Add --no-header.

1.0.0 (2019-06-27)

  • Write to stdout.
  • Only Python>=3.6 is supported.

0.2.0 (2013-09-09)

  • Add support for global gitignore files.

0.1.0 (2013-09-07)

  • First release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gig, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size gig-1.1.0-py2.py3-none-any.whl (4.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size gig-1.1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page