I need a bit of help ladies - do any of you know how to fix a back wheel puncture on a bike with hub gears? Can you explain it to me please?

I'm probably going to have to help out if anything goes wrong on a short trip and one of my friends rides a folder with hub gears. I've googled this and watched one or two videos but I'm still having difficulty wrapping my head around it. Removing and replacing the gear change cable is the part that seems complicated to my feeble brain. I'm not sure they're all the same either. Hers is a shimano. Do I need to carry extra tools? Maybe I should persuade her to ride one of my bikes instead? Thanks.