gitignore-gen 🚀
A powerful command-line tool to generate .gitignore files for your projects with ease.
Problem It Solves
Managing project files effectively is crucial for clean and efficient development. Without proper .gitignore files, repositories become cluttered with:
-
Build artifacts and compiled code that should be generated locally
-
Dependency directories that bloat repository size (like node_modules)
-
Environment-specific configuration files with sensitive information
-
IDE and editor-specific files that cause conflicts between team members
-
Temporary and cache files that serve no purpose in version control
Creating these files manually is time-consuming and error-prone, often leading to:
-
Accidental commits of sensitive or unnecessary files
-
Repository bloat that slows down cloning and fetching
-
Merge conflicts in files that shouldn't be tracked
-
Inconsistent ignore patterns across different projects
Credibility
Currently there are many tools that provide this gitignore file to you but those are web based so you need to copy and paste it again again when you create a new project but in our case you can get the full gitignore with simply by typing one command in your terminal and it will automatically save it to your project directory with caching mechanism implemented. NO TYPING MISTAKE OR NO COPY PASTE SIMPLY ONE COMMAND --> "gitignore-gen"
Features
-
Generate .gitignore files for numerous programming languages and frameworks with ease
-
Create combined .gitignore files for projects using multiple technologies
-
List all available templates
-
Caching system to reduce API calls to GitHub
-
Force overwriting of existing files with optional flag
Prerequisites
Before using gitignore-gen, ensure you have:
- Python 3.6 or higher installed
Installation
Install gitignore-gen easily via pip:
pip install gitignore-gen
Usage
-
Generate a .gitignore file for a specific language:
```gitignore-gen --lang Python``
-
List all available templates:
gitignore-gen --list -
Generate a combined .gitignore for multiple languages:
gitignore-gen --multiple Python Node Java -
Update local template cache:
gitignore-gen --update
-
Force overwrite an existing .gitignore file:
gitignore-gen --lang Python --force -
Use cached templates only (no GitHub API calls):
gitignore-gen --lang Python --cache
Demo
🤝 Contributing
Contributions are welcome! Feel free to:
Report bugs
Suggest features
Submit pull requests
Please read our contributing guidelines before submitting PRs.
⚖️ License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
GitHub's gitignore templates repository for providing the templates
All contributors and users of this tool
Release files for gitignore-gen 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitignore_gen-0.1.1.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitignore_gen-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.6 kB
Release files / gitignore_gen-0.1.1.tar.gz
| Download URL | gitignore_gen-0.1.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a637eb542a95f8ae0e5bbb41c268febf03fcc249931a670f7d755fc08d3f466b
|
|
BLAKE2b-256 checksum How to use checksums |
8156184d2f6284166770debdd9b15280aeb229d6a404bf148a91cff97b41e211
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / gitignore_gen-0.1.1-py3-none-any.whl
| Download URL | gitignore_gen-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
365d2899ee7b4afb2cd690792b217da1e339b3b01d7655a55be7b030ca5d284d
|
|
BLAKE2b-256 checksum How to use checksums |
b9f03001628f77c86134ea38124dcd3655acc206fe3271c921a402dea1427466
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|