gen-git
v1.1.3
Published
A CLI tool for generating .gitignore files
Maintainers
Readme
gen-git
gen-git is a CLI tool that allows developers to generate .gitignore files for different programming languages and frameworks with ease. It integrates with Toptal's GitIgnore API to fetch optimized .gitignore files and provides an interactive experience for users.
Features
- Interactive CLI for selecting languages
- Supports multiple OS environments
- Fetches
.gitignoretemplates from Toptal GitIgnore API - Option to overwrite existing
.gitignorefiles
Installation
You can install gen-git globally using npm:
npm install -g gen-gitAlternatively, use npx to run without installation:
npx gen-gitUsage
To generate a .gitignore file for a specific language:
gen-gitFollow the prompts to select a language and generate the .gitignore file.
If a .gitignore file already exists, you will be prompted to overwrite or cancel the operation.
Example
? Choose Language: (Use arrow keys)
> Node.js
Python
Java
Go
Fetching gitignore for Node.js......
The file has been saved!License
This project is licensed under the MIT License.
Acknowledgments
- Toptal GitIgnore API for providing
.gitignoretemplates. - The open-source community for inspiration and contributions.
