I have a feature branch named 'feature123' and I had four commits and pushes on it as follows.
bad commit4 #abcd4 1 min ago
bad commit3 #abcd3 2 mins ago
bad commit2 #abcd2 3 mins ago
bad commit1 #abcd1 4 mins ago
last good commit #efgh5 5 mins ago
Later it got merged to a remote branch named 'develop' for dev environment. I have to revert all bad commits (keep till last good commit) from develop and 'feature123' branches. Please suggest me a good set of commands.