.gitignoreの設定

$ git add . がうまくいかない

なんか,

$ git add .
The following paths are ignored by one of your .gitignore files:
wp-config.php
Use -f if you really want to add them.
fatal: no files added

と言われる.え?.gitignoreあるけど無視してくれないの?

$ git add -A .

これで良かった.-Aオプションで"すべての追跡対象のファイルについて,インデックスを更新"ということらしい.-A付けてなかったから追跡対象外のファイルあるけどどうするの?と言われていたらしい.

www-creators.com