git で編集したファイルを元に戻す

git checkout -- <file>