-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
It's pretty common for me to drop a .gitignore file into a directory that I want to exist within the project but whose contents should always be ignored, e.g. the dist/ folder or other compilation destination. The patterns I use for that file are always:
*
.*
!.gitignore
Would it be worthwhile to have a flag for git ignore that would drop in one of these common usage patterns, at least as a starting point? For example:
$> cd dist
/path/to/my/project/dist/
$> git ignore --all
Adding patterns to: .gitignore
... adding *
... adding .*
... adding !.gitignore
$> cd ..
/path/to/my/project/
$> git status -s
?? dist/.gitignore
Happy to submit a PR and contribute, as well.
Metadata
Metadata
Assignees
Labels
No labels