Accidentally Formatted my Hard Drive

So I was following a YouTube tutorial to install MacOS Sonoma 14.8.3 and missed the part where you’re supposed to back up your hardrive or not care that it’ll get wiped. I was doing this at 3am last night and didn’t think I was formatting the hard drive (I am an idiot). Long story short, lost all of the files on my Mac and the Time Machine function isn’t working either. Is there any way I can undo this or go back to a previous version of my Mac? I’m not used to messing with Mac’s so I’m not sure how badly I just screwed up

submitted by /u/Inevitable-Onion9272
[link] [comments]