equal
deleted
inserted
replaced
402 |
402 |
403 Reviewing ``git reflog`` also may help. |
403 Reviewing ``git reflog`` also may help. |
404 |
404 |
405 * https://stackoverflow.com/questions/5788037/recover-from-git-reset-hard |
405 * https://stackoverflow.com/questions/5788037/recover-from-git-reset-hard |
406 * https://stackoverflow.com/questions/14251194/how-to-recover-after-i-execute-git-reset-hard-head |
406 * https://stackoverflow.com/questions/14251194/how-to-recover-after-i-execute-git-reset-hard-head |
|
407 |
|
408 Undo mistaken push |
|
409 ================== |
|
410 :: |
|
411 |
|
412 $ git reset HEAD^ |
|
413 $ git push --force |
|
414 |
|
415 Alternative commands may look like:: |
|
416 |
|
417 $ git reset --hard $HASH |
|
418 $ git push -u origin master --force |
407 |
419 |
408 Git bisect |
420 Git bisect |
409 ========== |
421 ========== |
410 |
422 |
411 ``bad`` changes should be later in graph history then ``good`` ones. To use |
423 ``bad`` changes should be later in graph history then ``good`` ones. To use |