Generate a .gitignore from the command line.
Install with pip:
pip install ignorepy
After installing run:
ignorepy tag1 tag2 tag3
A .gitignore file will be generated from gitignore.io with the specified tags and copied to the clipboard.
Additionally pass -s
ignorepy tag1 tag2 tag3 -s
and the tags will be saved as default tag. Then the program can be called with
ignorepy
and the default tags will be automatically loaded.
Additionally pass -f
ignorepy tag1 tag2 tag3 -f
and instead of being copied to the clipboard the .gitignore file will be written to .gitignore in the current working directory.