Revert a checkout

Added commit amend command.