Skip to main content

Easily manage .gitignore files.

Project description


ignorem - The best gitignore manager yet!


ignorem makes interacting with your .gitignore file just like using a package manager. You can "install" pre-made gitignores into your file, remove them, and update them with ease! ignorem also supports user-modified gitignores, so your manual gitignore entries will be saved.


pip install ignorem


ignorem (command) [gitignore...]

Run ignorem from the command line, in the directory that contains the .gitignore file. ignorem requires one additional command:

Command Description Additional arguments
help Shows info/help text.
list Lists gitignores installed in .gitignore.
query Lists all available pre-made gitignores.
add Add the specified pre-made gitignore(s) to .gitignore. Gitignore(s) to add
remove Remove the specified pre-made gitignore(s) from .gitignore. Gitignore(s) to remove
update Update all pre-made gitignores installed to .gitignore.
repo-list Lists all enabled repositories.
repo-add Adds the specified repository. Repository URL
repo-del Removes the specified repository. Cannot remove default repository. Repository URL


Create a new gitignore for python
ignorem add python

Add android and vim to the gitignore
ignorem add android vim

Remove vim from the gitignore
ignorem remove vim

Manual ignores

ignorem will save the entries you add manually to the .gitignore file. Simply place those entries outside of the # (BEGIN/END) ignorem auto-gen tags.

An empty gitignore is below to demonstrate this:

# BEGIN ignorem auto-gen
# This gitingore was generated by ignorem version 1.0
# DO NOT EDIT ANY TEXT INSIDE THE ignorem auto-gen tags!
# It will be overwritten next time ignorem is ran.
# Following this header are the loose ignores, or ignores added externally.
# After that, there are the ignores generated by ignorem.
# END ignorem auto-gen

(Place your manual entries here)

# BEGIN ignorem auto-gen
# Beginning of ignorem generated ignores.
# ignorem installed gitignores: 

(will contain pre-made gitignores)

# END ignorem auto-gen


A repository is a file on a web server with instructions for downloading gitignores. A repository must be encoded as UTF-8, and follow the format:

<id> <url>

Where id is the name of the gitignore to be used in ignorem, and url is the url to the raw gitignore file.

For example:


For a real example, see the default repository.

Project details

Download files

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

Source Distribution

ignorem-1.1.3.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

ignorem-1.1.3-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page