Easily manage .gitignore files.
Project description
ignorem
ignorem - The best gitignore manager yet!
About
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.
Installation
pip install ignorem
Usage
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 |
Examples
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
# https://github.com/itsmaxymoo/ignorem
# 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
Repositories
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:
c++ https://raw.githubusercontent.com/github/gitignore/master/C++.gitignore
...
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
Built Distribution
File details
Details for the file ignorem-1.1.3.tar.gz
.
File metadata
- Download URL: ignorem-1.1.3.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cab322330eedc0a161630118a1f72b8960a89436555848de39cc237cf55e03d |
|
MD5 | 4c611e02993e3a3babf7762b6aa3f6db |
|
BLAKE2b-256 | 0fb17bf5e4af460b1e67380106d8bc6a9925253dcbf0a1bbb0d0bc1cca939460 |
File details
Details for the file ignorem-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: ignorem-1.1.3-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba1a756b01a460c82f3b014fbde45b9e1452b17dbd19fdeb167acaa5b6a83c05 |
|
MD5 | 3d90b017e05f05118f12a8cc7bf533db |
|
BLAKE2b-256 | b171f4dbba77a7b1272fda3b99bb07d0188b155395d13ae132d642889fafde30 |