How To remove a commit on GitHub?

1 – Copy the commit reference you like to go back to from the log: git log 2 – Reset git to the commit reference: git reset 3 – Stash/store the local changes from the wrong commit to use later after pushing to remote: git stash 4 – Push the changes to remote repository, (-f […]