type some keywords to generate a .gitignore file.
npm install -g gitignore-gen
ignore [keyword [keyword]] [-a PATTERN [, PATTERN]] [-f]...
eg.
ignore mac node
will generate these:
.DS_Store
node_modules/*
add --force
option to force rewrite the .gitignore
add --custom
to append your custom ignore pattern, use comma to separate items.
eg.
ignore node -c .DS_Store
it will generated below:
.DS_Store
# Logs
...
// the node ignore file list from GitHub's gitignore template.
...
.lock-wscript
view current .gitignore file's content
remove some pattern which matched the args you provided
- view .gitignore file
- auto dected dev env.
- delete pattern