Revert multiple commits

git revert

  • Create new commits which reverse the effect of earlier ones.
    More information: <https://git-scm.com/docs/git-revert>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git revert {{branch_name~5..branch_name~2}}

click the source code to copy install git revert on any operating system with command-not-found.com