LoginSignup
2
4

More than 5 years have passed since last update.

うっかり消したgit stashを戻す方法

Posted at
  1. sha1ハッシュを探す
    git fsck --unreachable | grep commit | cut -d' ' -f3| xargs git log --merges --no-walk --grep=WIP
  2. cherry-pickで変更を持ってくる
    git cherry-pick -n -m1 <sha1 hash>
2
4
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
2
4