空ディレクトリを維持したいときは、.gitkeepを置けばよいらしい。ここのサイトの情報を参考にして以下のコマンドを実行して一発で対応できた。
$ find . -type d -empty -not -path './.git*' -exec touch {}\/.gitkeep \;
Challange IT For Future
空ディレクトリを維持したいときは、.gitkeepを置けばよいらしい。ここのサイトの情報を参考にして以下のコマンドを実行して一発で対応できた。
$ find . -type d -empty -not -path './.git*' -exec touch {}\/.gitkeep \;