Timeline for Undoing a git rebase
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2013 at 5:12 | comment | added | user456814 |
You actually don't even need to make a backup branch, you can simply use the branchName@{n} syntax, here n is the nth prior position of the branch pointer. So for example, if you rebase featureA branch onto your master branch, but you don't like the result of the rebase, then you can simply do git reset --hard featureA@{1} to reset the branch back to exactly where it was before you did the rebase. You can read more about the branch@{n} syntax at the official Git docs for revisions.
|
|
May 24, 2013 at 5:08 | history | edited | user456814 | CC BY-SA 3.0 |
Added inline code formatting.
|
May 12, 2009 at 20:57 | history | answered | Alex Gontmakher | CC BY-SA 2.5 |