LoginSignup
31
25

More than 5 years have passed since last update.

間違えてgit rm したファイルを元に戻す方法

Last updated at Posted at 2014-07-14

間違えて git rm してしまった時の復帰方法。
備忘録的に残す。

git rm ./donotdelete.rb
消去

git reset HEAD ./donotdelete.rb
git checkout ./donotdelete.rb
復帰

31
25
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
31
25