weblog of key_amb

主にIT関連の技術メモ

gitで不要なaddを取消す

この記事にまとめました。


不要にaddしてしまったファイルを取消すとき。

|sh| git rm --cached path/to/file git rm -r --cached path/to/file ||< または、 |sh| git reset HEAD -- path/to/file ||<