This is just me and judging by how I started, I would throw the skein of yarn, the needles and the cast on/knit row and have a cigarette.
Then I would grab a different pair of needles and a different skein of yarn because those other ones are obviously cursed, and try again.
But that's just me.
Seriously (actually I was being serious but you might want to take a calmer approach
For only one row of knitting you'd probably spend more time trying to pick those stitches back up and get them all turned right than you would frogging it back to the cast on row and re-knitting it.
If it ever happens with more work on the needle there's a video showing what you need to do here,
,under "Fixing Mistakes" and the video is called "How to re-insert your needle". "Recognizing an accidentally twisted stitch" would also be a good one to watch.