Drop commits in between by rebasing onto itself

PHOTO EMBED

Thu Jul 14 2022 06:56:02 GMT+0000 (Coordinated Universal Time)

Saved by @Rohith #bash

git rebase -i <commit to drop>^
content_copyCOPY

It's interactive, remove the commit to drop, and close file. Force push to remote repo, since branch history is no more in sync.

https://stackoverflow.com/questions/20584267/git-remove-in-between-commit