Git は、空ディレクトリに対して git add
しても、インデックスしてくれない。
$ find . -type d -name .git -prune -o -type d -empty -exec touch {}/.gitignore
これで、全ての空ディレクトリに .gitignore
作ってしまい、空ディレクトリじゃなくなればいい。
Go to list of users who liked
More than 5 years have passed since last update.
Git は、空ディレクトリに対して git add
しても、インデックスしてくれない。
$ find . -type d -name .git -prune -o -type d -empty -exec touch {}/.gitignore
これで、全ての空ディレクトリに .gitignore
作ってしまい、空ディレクトリじゃなくなればいい。
Register as a new user and use Qiita more conveniently
Go to list of users who liked