Committing before reverting to previous version