“Retourner Git Rebase” Réponses codées

Retourner Git Rebase

git rebase --abort
Kevin

git annuler

git reset --hard ORIG_HEAD
Eager Echidna

git annuler

git reflog
Eager Echidna

git annuler

git reset --hard HEAD@{5}
Eager Echidna

git annuler

git reflog # determine pre-rebase head number, N
git reset --hard HEAD@{N}
Confused Crane

Retourne la réprimande

The easiest way would be to find the head commit of the branch as it was 
immediately before the rebase started in the reflog...

git reflog

and to reset the current branch to it (with the usual caveats about being
absolutely sure before reseting with the --hard option).
Suppose the old commit was HEAD@{2} in the ref log:

git reset --hard HEAD@{2}
Coding Era

Réponses similaires à “Retourner Git Rebase”

Questions similaires à “Retourner Git Rebase”

Plus de réponses similaires à “Retourner Git Rebase” dans Shell/Bash

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code