1. Find a flash light
2. Open main breaker
3. Remove entire front panel
4. remove wire from breaker
5. lift breaker out
6. push in new breaker
7. reattach the wire
8. replace front panel
9. close main breaker
10. turn off flashlight
1.5. Turn off the main breaker.
For beginning electricians who can't remember where black and white wires go, I remind them that most white people get silver hair when they get old and most black people get gold hair. So match the screws with the appropriate colored wire when repairing circuits or installing breakers.
NEVER work on a panel with the main switch still on. I've known pros who told me they can do it if you're very careful, but it isn't a chance worth taking. The inconvenience of working with a flashlight pales next to the real possibility of frying a panel or electrocution.