How to Delete a GitHub Commit From History

BFG Cleaner Website: bfg-repo-cleaner

Rebase to commit just prior to the commit you want to delete

$ git rebase -i 49ecbd71a342a4a6f114964fc529960a73268429

GtiHub_delete_a_commit_0

Delete the lines containing the commits you want to delete.

:wq

To write and quit

Force push to the origin master

$ git push -f origin master

// login with credentials

GtiHub_delete_a_commit_1

Journal