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:
parent
985f3b44b7
commit
2ebdac70da
16
.gitignore
vendored
16
.gitignore
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user