Défaire un git rebase

Mots clés : gitrebasegit-rebaseundogit

meilleur 5 Réponses Défaire un git rebase

vote vote

98

git reflog 
git reset --hard HEAD@{2} 
git reset --hard "HEAD@{2}" 
[core]     logAllRefUpdates = true 
vote vote

83

git reset --hard ORIG_HEAD 
vote vote

80

git rebase --abort 
vote vote

65

git rebase --onto 0deadbeef master topic 
vote vote

51

$ ~/work/projects/{ProjectName} $ git status On branch {branchName} Your branch is ahead of 'origin/{branchName}' by 135 commits.   (use "git push" to publish your local commits)  nothing to commit, working directory clean  $ ~/work/projects/{ProjectName} $ git reset --hard origin/{branchName} HEAD is now at 6df5719 "Commit message".  $ ~/work/projects/{ProjectName} $ git status On branch {branchName} Your branch is up-to-date with 'origin/{branchName}.  nothing to commit, working directory clean 

Questions similaires