I've been following a youtube video to learn about 3d modeling and adding armatures to meshes (video: https://www.youtube.com/watch?v=Q9f-WVs3ghI&t=610s) and whenever I try to parent the armature to the mesh it twists and deforms the mesh. I done a good bit of research on what worked for other people have done to fix the problem and so far none of it has worked for me. So far I have reset rotation of all bones to zero, made sure the bones were mirrored perfectly,changed pole angles, and other things similar to this. None of these have seemed to solve the problem so far.
Any and all help is welcome :)
And my blend file can be found here: