I accidentally made a change using Git, pushed it to GitHub and after that made a few commits. I need to remove this commit from the story. I understand that this can lead to other forks, and I'm fine with that.
I managed to change my story locally with a command, for example:
git rebase --onto HEAD~4 HEAD~3 HEAD
which seemed to work fine. However, I do not know how to get this modified story returned back to github.
source share