LoginSignup
3
3

More than 5 years have passed since last update.

[Git]直前のコミットを作業ツリーに戻したい時

Posted at

コミットしちゃったけど、作業ツリーに戻したい!っていうとき

% git reset HEAD~1

でコミットが消えて、
直前コミットの変更内容が作業ツリーにもどってくれる☆

(この変あまりやらないので、いざというときよく忘れるのでメモ)

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