Mots clés : gitrebasegit-rebaseundogit
98
git reflog
git reset --hard HEAD@{2}
git reset --hard "HEAD@{2}"
[core] logAllRefUpdates = true
83
git reset --hard ORIG_HEAD
80
git rebase --abort
65
git rebase --onto 0deadbeef master topic
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