6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

magitで変更したファイルを元に戻す(コミットを戻すんじゃないよ)

Last updated at Posted at 2016-06-13
  • コミット単位で戻すなら magit-reset とかだと思うけど、ファイル単位なら magit-file-checkout
  • magit-status のバッファで、戻したいファイルの上で M-x magit-file-checkout
  • キーは割り当てられてないみたい
  • 最初に戻したい revision を聞かれるけど、大体デフォの master でいいと思う
  • Untracked files, Unstaged changes, Staged changes どれでも効いた
6
6
2

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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?