6
6

More than 5 years have passed since last update.

Git の空ディレクトリ登録してくれない問題への対処方法

Posted at

Git は、空ディレクトリに対して git add しても、インデックスしてくれない。

$ find . -type d -name .git -prune -o -type d -empty -exec touch {}/.gitignore

これで、全ての空ディレクトリに .gitignore 作ってしまい、空ディレクトリじゃなくなればいい。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6