Leave if you feel nothing else but a desire to behave violently. This needs to be sorted out when you’re calmer; get out of the room, house or wherever you may be.
Be prepared for him to act violently, since you caught him in an offensive art. You should not be the one to start the violence but it is always clever to have a backup plan. You may want to place yourself near an exit or near the kitchen or an item that could be used as a weapon for self protection.
Avoid saying anything strictly out of anger or hurt—you may end up saying something you regret. If you do decide to stay together, it will take time for your girlfriend to rebuild the trust that she has broken. Seeing a couple’s counselor can be very helpful.