Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.49 KB

README.md

File metadata and controls

59 lines (36 loc) · 1.49 KB

dotignore

dotignore is a CLI tool for generating .gitignore files.

Installation

Linux

wget https://github.com/bariscanyilmaz/dotignore/releases/download/[version]/dotignore-[version]-linux-x64.tar.gz

sudo mkdir -p /usr/local/dotignore && sudo tar -C /usr/local/dotignore -xzf dotignore-[version]-linux-x64.tar.gz

export PATH=$PATH:/usr/local/dotignore

Usage

Create .gitignore files

Create your .gitignore files with init verb

dotignore init <template>

dotignore-init-value

Also, init is a defeault verb and you can omit it

dotignore <template>

dotignore-value

When you use init verb be careful, it creates a new or overwrite existing .gitignore file. If you want to just add new template to existing one, add --append or -a option.

dotignore dotnet --append

List available .gitignore templates

List your dotignore files with ls verb

dotignore ls 

dotignore-ls

Also, ls has -q or --query option for searching your template

dotignore ls -q <template>

dotignore-ls-q