Gitflow
🔁Can't Re-Merge After Reverting a MergeExpert+850 XP
Workshop
Scenario reference

Can't Re-Merge After Reverting a Merge: the situation, step by step

The situation

Two weeks ago you reverted a bad merge. Now the feature is fixed and you want to merge it back — but Git acts like it's already merged and brings in nothing.

The revert commit cancels the feature. You have to revert THAT revert before re-merging.

Expert · 4 steps · +850 XP

What you will practice

This scenario walks through 4 steps, in order:

  1. 01Find the revert commit
  2. 02Revert the revert to resurrect the feature
  3. 03Now merge the new fixed feature on top
  4. 04Push
Reveal the step-by-step commands

Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.

  1. 1. Find the revert commit
    git log --oneline
  2. 2. Revert the revert to resurrect the feature
    git revert rr00003
  3. 3. Now merge the new fixed feature on top
    git merge feature-fixed
  4. 4. Push
    git push origin main

Key takeaway

Revert-the-revert is the Git-idiomatic way to bring a reverted merge back to life.