git commit revocation has been submitted to the remote server:
First, the need to use git log to see the withdrawal of commitid git log Second, the revocation: One way: // revoked commit, but does not modify the code git reset commitId way: // revoked commit, while the recovery code ID to the corresponding versions of git reset --hard commitId
perform three or need to revoke submitted to the remote server:
git the Push the HEAD Origin --force
// undo the last commit has been submitted but not push
git reset --soft head^