Rails : why is there .keep file in every directory [duplicate]

This is not for Rails actually, this is for git.

Git doesn’t track “empty” directories, so, the directories like eg. “/logs” wouldn’t end up in the repository. Having a .keep in it, makes the directory to be tracked.

Updates:

In Unix based systems, files starting with a dot(.) are considered hidden and do not appear in the UI. Hence might not disturb you.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)