Switch from the configuration mode to the execution mode without any uncommitted configurations.

admin@XorPlus# exit
admin@XorPlus>


Use the exit discard command to enter the execution mode from the configuration mode with any uncommitted or failed committed configurations.

admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 disable true
admin@XorPlus# exit
ERROR: There are uncommitted changes.
Use "commit" to commit the changes, or "exit discard" to discard them.
admin@XorPlus# exit discard 
admin@XorPlus>