# Delete (one of the) last commit(s) without shooting yourself in the foot
# In the editor that opens, remove the line of any commit you want to discard.
# Only shows commits not pushed to upstream, thus avoids trouble later on.
git rebase -i
# Delete (one of the) last commit(s) without shooting yourself in the foot
# In the editor that opens, remove the line of any commit you want to discard.
# Only shows commits not pushed to upstream, thus avoids trouble later on.
git rebase -i