Undoing the last git commitBy Josh Brown / September 9, 2010 Really simple: git revert HEAD Source: Git Book – Undoing in Git