loupeznik/ignoreinit

By loupeznik

Updated 5 months ago

A tool for creating .gitignore files from the command line

Image

89

Ignoreinit

GitHubGitHub go.mod Go version

Ignoreinit is a tool for creating .gitignore files from the command line. Gitignore files are pulled from github/gitignore repo.

Source

Usage

Create new .gitignore

Creates new .gitignore based on given language in defined location (either relative or absolute).

ignoreinit init <language> <location>
Replace existing gitignore

Replaces existing .gitignore based on given language in defined location (either relative or absolute).

ignoreinit replace <language> <location>

Running with Docker

# Create .gitignore in the current directory
docker run --rm -v ${PWD}:/work loupeznik/ignoreinit:latest init go .

# Create .gitignore in another directory directory
docker run --rm -v $HOME/projects:/work loupeznik/ignoreinit:latest init go .

Docker Pull Command

docker pull loupeznik/ignoreinit