“Keep dwelling on something and you grow attached to it; from attachment comes desire, and from desire comes anger.”
Anger doesn't come from nowhere. It starts with what you keep turning over in your head.
Someone wrecked your game, broke your thing, said the unfair thing. The Gita has a sharp map of how anger takes over, and of where you can step off.

“Keep dwelling on something and you grow attached to it; from attachment comes desire, and from desire comes anger.”
Anger doesn't come from nowhere. It starts with what you keep turning over in your head.
“From anger comes confusion, confusion clouds memory, and then good judgment is lost.”
Anger takes away the clear head you need most, right when you need it.
“Whoever can hold steady against the surge of desire and anger, here in this life, is steady, and is happy.”
Krishna doesn't say you won't feel the surge. He says the person who can ride it out is the happy one.
In the Gita, Krishna doesn't tell Arjuna that anger is wicked, or that he should never feel it. He describes it like a chain reaction (2.62–63): you dwell on something, you get attached, you want it, something blocks you, you're angry, and then you can't think straight.
The useful thing about a chain is that it has links. The first one, what you keep replaying, is the easiest to break. The last one, words already leaving your mouth, is the hardest. So most of the work happens early: notice the replay, take the breath, step out of the room.
Later Arjuna asks what pushes people to do wrong even when they don't want to. Krishna's answer is short: desire and anger, which he calls the enemy here (3.37). Not the other person. The surge inside you.
From anger proceedeth delusion; from delusion confused memory…Bhagavad Gita 2.63, Annie Besant's translation (1922)