Ignore whole directory, not only inner contents

`dir/*` style let git ignore files and directories in `dir/`, but not
`dir/` itself.
This cause `git clean -df` to remove `dir/` **with its contents**!

To prevent `git clean -df` to remove data directories (`avatar/`, `file/`,
etc), use `dir/` (or `dir`) style in gitignore.
This commit is contained in:
Takuma YOSHIOKA 2017-04-29 14:22:36 +09:00
parent 985f3b44b7
commit 2ebdac70da
No known key found for this signature in database
GPG Key ID: C36E8DCEA77569E5
1 changed files with 8 additions and 8 deletions

16
.gitignore vendored
View File

@ -1,11 +1,11 @@
avatar/* avatar/
files/* files/
file/* file/
local/* local/
_darcs/* _darcs/
logs/* logs/
log/* log/
run/* run/
config.php config.php
.htaccess .htaccess
httpd.conf httpd.conf