日々精進

新しく学んだことを書き留めていきます

2014-02-20から1日間の記事一覧

gitで空ディレクトリをコミットする方法

git

gitは空ディレクトリをコミット出来ないので、空の.gitkeepファイルを作ってコミットする。 以下を実行すると空ディレクトリに.gitkeepを作れる。 find . -type d -empty -not -path './.git*' -exec touch {}\/.gitkeep \;参考:git/空のディレクトリが消え…