git restore コマンド
git restore [--staged] FILE
作業ツリーの変更を元に戻したり、ステージから変更を下ろしたりする。
使用例
git restore app.txtファイルの編集を破棄して元に戻すgit restore --staged app.txt変更は残しつつステージから外すgit restore コマンドgit restore [--staged] FILE
作業ツリーの変更を元に戻したり、ステージから変更を下ろしたりする。
git restore app.txtファイルの編集を破棄して元に戻すgit restore --staged app.txt変更は残しつつステージから外す