Does anybody know how to easily undo a git rebase? 有人知道如何輕鬆撤消git rebase嗎? git
The only way that comes to mind is to go at it manually: 想到的惟一方法是手動進行操做: app
In my current situation this is gonna work because I can easily spot commits from both branches (one was my stuff, the other was my colleague's stuff). 在我目前的狀況下,這是可行的,由於我能夠輕鬆地發現兩個分支的提交(一個是個人東西,另外一個是我同事的東西)。 ide
However my approach strikes me as suboptimal and error-prone (let's say I had just rebased with 2 of my own branches). 可是,個人方法給個人印象是次優且容易出錯(例如,我剛剛使用本身的兩個分支進行了從新基準化)。 this
Any ideas? 有任何想法嗎? idea
Clarification: I'm talking about a rebase during which a bunch of commits were replayed. 澄清:我說的是一個重定基礎,在此基礎上重播了不少提交。 Not only one. 不僅是一個 spa