Skip to content

Generate .gitignore from cli

Notifications You must be signed in to change notification settings

SkYNewZ/gitignore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitignore

Simple cli to create a .gitignore file from https://github.com/github/gitignore.

Installation

If you have Go 1.18 (or greater) installed:

go install github.com/SkYNewZ/gitignore@latest

(and make sure your $GOBIN is in your $PATH.)

Usage

Usage of gitignore [language] [flags]:
  -directory string
        (optional) Output file path. (default ".")
  -filename string
        (optional) Output file name. (default ".gitignore")
  -list
        List available languages on github/gitignore@main.
  -token string
        (optional) GitHub token to use in case of rate-limited.
  -version
        Show version.

Example

gitignore go
file successfully writed to <current directory>/.gitignore
# Make a .gitignore file with content from https://github.com/github/gitignore/blob/main/Go.gitignore

About

Generate .gitignore from cli

Topics

Resources

Stars

Watchers

Forks

Languages