回答編集履歴

1

git reflog

2017/12/03 10:22

投稿

yumetodo
yumetodo

スコア5850

test CHANGED
@@ -5,3 +5,15 @@
5
5
  1. remoteのどっかにotherが残っている→それをcheckout
6
6
 
7
7
  2. 残ってない→git reflogで復旧
8
+
9
+
10
+
11
+ ---
12
+
13
+
14
+
15
+ とおもったんだけど、どっちにしてもgit reflogでhash調べてcheckoutすればいいや。
16
+
17
+
18
+
19
+ [git でコミットが消えた場合に簡単に復帰する方法 - Qiita](https://qiita.com/Ratty27/items/7ebfe9a4933eba7630dc)