0
0

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 5 years have passed since last update.

git stashが溜まってどれが古いのかわからなくなったのでメモ

Posted at

コミット前の変更を保存するために、stashを繰り返してstashが溜まるときがありますよね。
その時の溜まり方がこんな感じになり、どれが最新でどれが古いのかわからなくなりますよね。
いちいちコミットIDからどれが最新なのかみるのも面倒なのでメモです。

stash@{0}: WIP on branch_name: a83681d6 直前のコミットA
stash@{1}: WIP on branch_name: c8e433k2 直前のコミットA
stash@{2}: WIP on branch_name: b1df90k2 直前のコミットA

結論、stash@{0}が一番直近でstashしたもの。
stash@{2}が一番古いstashです。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?