Skip to content

πŸ› οΈ Interactive Bash script to generate .gitignore files using gitignore.io – supports languages, frameworks, IDEs, and DevOps tools like Docker, Kubernetes, and Terraform.

License

Notifications You must be signed in to change notification settings

sean-njela/generate-gitignore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”₯ generate-gitignore.sh

A simple, interactive Bash script to generate a .gitignore file using the gitignore.io API. Supports common programming languages, frameworks, IDEs, and DevOps tools.

πŸ“¦ Features

  • Interactive CLI menu with 25+ popular stacks
  • Supports custom inputs (e.g., dotnet,android,unity)
  • Generates a proper .gitignore instantly
  • Adds optional .gitignore description to your README.md
  • Includes DevOps stacks: Docker, Kubernetes, Terraform, Jenkins, GitHub Actions, etc.

🧰 Dependencies

  • bash
  • curl

πŸ–₯️ Usage

chmod +x generate-gitignore.sh
./generate-gitignore.sh

πŸ“˜ Example Output

Select one or more stacks (space-separated numbers), or type 'c' for custom input:
 1) Python
 2) Node
 3) Java
 ...
 c) Custom (type your own comma-separated values)
Your choice: 1 2 14

Generating .gitignore for: python,node,react
.gitignore successfully created.
Do you want to append a note to README.md about .gitignore? (y/n): y
Note added to README.md

generate-gitignore CLI Screenshot

βœ… Supported Stacks

  • Languages: Python, Node.js, Java, Go, Ruby, C++, JavaScript
  • Frameworks: React, Angular, Next.js, Flask, Django, Laravel, Unity
  • DevOps Tools: Docker, Kubernetes, Terraform, GitLabCI, GitHubActions, Jenkins, Ansible, Helm
  • Platforms: macOS, Windows, Linux
  • IDEs: Visual Studio Code

πŸ™Œ Contributions

Pull requests and new stack suggestions welcome!

πŸ“„ License

MIT License

About

πŸ› οΈ Interactive Bash script to generate .gitignore files using gitignore.io – supports languages, frameworks, IDEs, and DevOps tools like Docker, Kubernetes, and Terraform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages