More than 3 years have passed since last update.
$ git checkout .
これで変更したものを元に戻すことができる。
Register as a new user and use Qiita more conveniently