joseluisq / gitnow

Speed up your Git workflow. :tropical_fish:
https://github.com/joseluisq/gitnow
MIT License
391 stars 25 forks source link

Add support for ignore files persistently #6

Open joseluisq opened 4 years ago

joseluisq commented 4 years ago

It would be great if we can support a command to ignore (or revert) files on demand and place them into .gitignore file.

Proposal: I suggest to add an ignore command.

1. Ignore a file:

~> ignore README.md
~> cat .gitignore
# README.md

1. Revert ignored file:

~> ignore --no README.md
~> cat .gitignore
# (empty)