次のディレクトリ構造を git にコミットしようとしています。
web
/uploads
/avatars
/video
レポのルートに次の行.gitkeepを追加します。/web/uploads/avatars//web/uploads/video/.gitignore
/web/uploads/
!/web/uploads/avatars/.gitkeep
!/web/uploads/video/.gitkeep
ただしgit status、新しいファイルは表示されません。呼び出すgit add web/uploads/avatars/.gitkeepと、次のメッセージが出力されます。
The following paths are ignored by one of your .gitignore files:
web/uploads/avatars/.gitkeep
Use -f if you really want to add them.
fatal: no files added
空のディレクトリ構造を git リポジトリにコミットするにはどうすればよいですか? PS git バージョンは git バージョン 1.8.4.msysgit.0 です。