[git]commitした後に.gitignoreに追加したい時
Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/internal-link-building-plugin/internal_link_building.php on line 86
Notice: Trying to access array offset on value of type bool in /var/www/html/wordpress/wp-content/plugins/internal-link-building-plugin/internal_link_building.php on line 105
gitを使っていて以前コミットしたが、特定のファイルがgitで管理したくなくなったという状況が起こったので、対処法を残しておこうと思います。
git rm しようとしたが
error: the following file has local modifications:
というエラーが出力.gitignoreに追加
gitで管理しているルートディレクトリにある、.gitignoreにファイルを追加git rm –cached
git rm --cached [ファイル名]
このコマンドを実行することで解決することができた。
ディスカッション
コメント一覧
まだ、コメントがありません