This is how I resolved this -
- There were 5-6 commits on top of the erroneous commit.
- We reverted those commits, along with the erroneous commit.
- Committed and pushed the correct files again.
- Replayed the commits reverted again.
I've asked another question here to understand why it should be this way.
Special Thanks to @eatSleepCode for this help in suggesting the solution.