LoginSignup
3
3

More than 5 years have passed since last update.

Gitで前の一つコミットまで戻す方法

Posted at

新しく処理を追加したりした後、失敗して前回コミットした状態に戻したい方法

$ git pull --all
$ git reset --hard HEAD~1
$ git push --force
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3