2017-01-19 4 views
1

ブランチをリベースしました。競合がarisedとき、私は(私はいくつかの理由でリベースを再起動してみたかった)、リベース時にgit rebase --skipを間違えて実行しました。

git rebase --skip 

代わりに、

git rebase --abort 

を使用しました。

ここでもう一度リベースを開始すると、ブランチは最新であると言われていますが、すべての変更はありません。

答えて

1

あなたが使用できるものはreflogです。本質的にはgit refloggit logと似ていますが、コードコミットの代わりに、リポジトリのgit履歴に加えられたすべてのアクションが含まれています。でもcommit (amend)

1b229a2 [email protected]{0}: commit: Speed up debug mode a little bit 
9976a41 [email protected]{1}: commit (amend): Split LooseTire down to gameplay and presentation 
b825442 [email protected]{2}: commit: Split LooseTire down to gameplay and presentation 
889e828 [email protected]{3}: commit: Add a couple new interfaces 
b82965a [email protected]{4}: commit: Move car to the gameplay folder 
55360ae [email protected]{5}: commit: Fix a bug when displaying polygon collision shapes 
decd93c [email protected]{6}: checkout: moving from 7f06e8fb6bc81566215173b9739b26758a69a82e to master 
7f06e8f [email protected]{7}: checkout: moving from df922e5c2efcef3e6fc9566747efe9c79eae23b6 to df922e5c2efcef3e6fc9566747efe9c79eae23b6 
df922e5 [email protected]{8}: checkout: moving from master to df922e5c2efcef3e6fc9566747efe9c79eae23b6 

あなたには、いくつかのチェックアウト(私がやっていたgit bisectの一部)がある見ての通り、いくつかのコミット、例えば:

はここに私のプロジェクトの1からの最近のREFLOGです。これらはリポジトリのgitの履歴で取られたすべてのアクションです。

ガイドとして私はgit reset --hard [email protected]{2}を使って、私がgit commit --amend(reflogの2行目)を行う前の状態にレポを取得することができます。

関連する問題