Added step to discard local changes before checkout (for php, etc).