.gitignore と .gitkeep とを使い分けるためです。 - To use differently .gitignore and .gitkeep. $ rails new hoge # ... # create lib/tasks # create lib/tasks/.gitkeep # create log # ... Rails で使われていますね。 - It used by Rails. @idesaku さんに教えていただきました。ありがとうございます! - @idesaku san told me, thanks!