Gitigno is a command-line interface (CLI) tool that simplifies the process of generating .gitignore files for your projects. It utilizes the gitignore.io API to fetch a list of available templates and allows you to create a customized .gitignore file based on the technologies and frameworks you are using in your project.
- Fetches a list of available templates from gitignore.io API.
- Generates a customized
.gitignorefile based on your selected templates. - Easy-to-use CLI interface with clear instructions.
To install Gitigno, you can use pip:
pip install gitigno
After installing Gitigno, you can use the gitigno command to interact with the tool. Here are the available commands:
To see a list of available templates, use the following command:
python -m gitigno --tnames
This will display a table with all the available template names from gitignore.io.
To generate a .gitignore file based on selected templates, use the following command:
python -m gitigno create -t <template_name1>,<template_name2>,...
Replace <template_name1>,<template_name2>,... with the names of the templates you want to include in your .gitignore file, separated by commas. For example:
python -m gitigno create -t python,java,django
This will create a .gitignore file in the current directory with the specified templates.
- To generate a
.gitignorefile for a Python project, use:
python -m gitigno create -t python
- To generate a
.gitignorefile for a Node.js project, use:
python -m gitigno create -t node
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.
- Special thanks to the gitignore.io team for providing the API used by this tool.
Gitigno is maintained by Minenhle Ngubane.
By using Gitigno, you can streamline the process of creating .gitignore files for your projects, ensuring that you don't accidentally commit unnecessary files or directories to your version control system. Happy coding!
