空のディレクトリに.emptyを追加する
% find . -type d -empty -not -path './.git*' -exec touch {}\/.empty \;
.gitignore
% find . -type d -empty -not -path './.git*' -exec touch {}\/.gitignore \;
% find . -type d -empty -not -path './.git*' -exec touch {}\/.empty \;
.gitignore
% find . -type d -empty -not -path './.git*' -exec touch {}\/.gitignore \;