■gitignore : 管理外を無視する
# ファイルの場合
git rm --cached mfp.cache.js
# フォルダの場合 (-r を忘れずに!)
git rm --cached -r cache/
# コミットする(.gitignoreの変更をaddしてから)
git add .gitignore
git commit -m ".gitignore 除外指定を変更"
■git checkout : 変更の取り消し
// 作業ツリーの特定のファイルをインデックスの状態に戻す
git checkout <FILE_NAME>
// 作業ツリーをインデックスの状態に戻す
git checkout