Usually, when something comes out on Github (or a public repo), there is no way to make sure anyone else has a bad fix.
If you just want a cleaner code history, the way to do what you ask for is to rewrite the history both locally and in the remote project.
You want to either do git commit --amend to change your old commit, if you haven't created a new commit with your changes yet.
If you already created a new commit, you want to use git rebase -i to crush the commit on top of the old one.
After you make this change locally and verify that your commit looks the way you want, you need to git push --force overwrite the history on the remote Github remote.
Here's a tutorial on rewriting history in git, it explains how the approaches listed in this answer .
ffledgling
source share