when reverting multiple commits from main where: A <- B <- C <- D and D is the most recent git checkout -b my-revert-branch git revert --no-commit D git revert --no-commit C git revert --no-commit B git commit -a -m "my reverts"