Hi Konrad,

While some new git users may think that an empty folder is noteworthy, the 
original Git design is for a _content_ tracker, so without any content, 
there is nothing to track.(note that being a content tracker you get 
de-duplication for free, because meta data (tree objects) is stored 
separate from the content (blob objects).

Oddly enough you can track a zero byte file, and because Linux cannot have 
a file and a directory with the same name, you can't even cheat by using an 
empty file in place of the empty directory.

Often folks either create a ".keep" file (i.e. it's hidden by default 
because of the dot), or a ".gitignore" (which can be empty).

Hope that helps.

Philip

On Saturday, September 14, 2019 at 12:58:49 PM UTC+1, Konrad Putte wrote:

> At the moment it is a torture to add empty directories in a git commit, 
> although a user would expect git to add an empty directory by default.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/c8310bcf-d65f-4258-b6b9-7151e5c7ad0a%40googlegroups.com.

Reply via email to