git rm ファイル名 で error: the following file has local modifications と怒られた場合
git rm --cached ファイル名
git status等で日本語ファイル名が「\xxx\xxx」とバックスラッシュと数字の羅列になる
以下のコマンドで一発解消
git config --global core.quotepath false
gitでtrackしたくないファイル、フォルダを記述する。
.gitignoreファイル自体をgit管理したくない場合は、.gitignore自体も記述する。
git clone url mygrit
新しく追加されたファイルや、削除されたファイル、ファイルの変更などを全部addするときに-Aオプション
git add -A
ローカルの変更を元に戻す
git checkout ファイルネーム
全てのファイルの変更を元に戻す
git checkout .