How do I repair a broken guitar string ?

I’m a beginner to guitar and whilst I was tuning the high string it snapped. Can someone please tell me how, if possible, to repair it? Thanks
Update: *HIGH E STRING *
8 answers 8