]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Ignore whole directory, not only inner contents
authorTakuma YOSHIOKA <tashioka.256@gmail.com>
Sat, 29 Apr 2017 05:22:36 +0000 (14:22 +0900)
committerTakuma YOSHIOKA <tashioka.256@gmail.com>
Sat, 29 Apr 2017 05:22:36 +0000 (14:22 +0900)
commit2ebdac70da93e342e449841114b092acb2fca019
tree5dfeda29f1a7079dcea3d11858d863dbd48b9072
parent985f3b44b7378d95a5294b85beac6c8506810a48
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.
.gitignore