git管理からディレクトリを除外する
うっかりvendor/bundleをコミットしてしまったので...
$ git rm -r --cached vendor/bundle/
これだと
fatal: pathspec 'vendor/bundle/' did not match any files
になってしまいます。
以下のように--ignore-unmatch
を付けたらいけました!
$ git rm -r --cached --ignore-unmatch vendor/bundle/