回答編集履歴
1
コマンドを省略
test
CHANGED
@@ -28,15 +28,11 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
git stash list # stash一覧から該当のstash
|
31
|
+
git stash list # stash一覧から該当のstashを確認 => stash@{n}: WIP on temp: XXXXXXX(コミットID)
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
-
git rev-parse stash@{n}~ # 先のstashを作成した時点のHEADを特定 => 0a1b2c3d(コミットID)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
git reset --hard
|
35
|
+
git reset --hard XXXXXXX(コミットID) # stash作成時のコミットに移動
|
40
36
|
|
41
37
|
|
42
38
|
|