mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Update README.md
This commit is contained in:
parent
9478da7964
commit
5bad85aeba
@ -565,7 +565,7 @@ To delete a local branch:
|
|||||||
<a name="undo-rebase">
|
<a name="undo-rebase">
|
||||||
### I want to undo rebase/merge
|
### I want to undo rebase/merge
|
||||||
|
|
||||||
You may have merge/rebase your current branch with a wrong branch, or you simply cannot manage to achieve a correct result or even finish the rebase/merge process. Git is saving the original HEAD pointer in ORIG_HEAD, so it is simple to recover your branch at the state before the rebase/merge.
|
You may have merged or rebased your current branch with a wrong branch, or you can't figure it out or finish the rebase/merge process. Git saves the original HEAD pointer in a variable called ORIG_HEAD before doing dangerous operations, so it is simple to recover your branch at the state before the rebase/merge.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
(my-branch)$ git reset --hard ORIG_HEAD
|
(my-branch)$ git reset --hard ORIG_HEAD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user