From: Takuma YOSHIOKA Date: Sat, 29 Apr 2017 05:22:36 +0000 (+0900) Subject: Ignore whole directory, not only inner contents X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2ebdac70da93e342e449841114b092acb2fca019;p=quix0rs-gnu-social.git 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. --- diff --git a/.gitignore b/.gitignore index 102173e832..57ea182b2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,11 @@ -avatar/* -files/* -file/* -local/* -_darcs/* -logs/* -log/* -run/* +avatar/ +files/ +file/ +local/ +_darcs/ +logs/ +log/ +run/ config.php .htaccess httpd.conf