Update README.md

This commit is contained in:
Gaëtan Petit 2017-01-08 00:32:15 +01:00 committed by GitHub
parent 9478da7964
commit 5bad85aeba
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ To delete a local branch:
<a name="undo-rebase">
### 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
(my-branch)$ git reset --hard ORIG_HEAD