Bone unwanted rotation when moving IK
Move your pole-target bone in front of the knee, when you've done the setup as in the tutorial at 19:30 this should work. The IK solver tries to maintain the orientation of the knee to the pole target. That is the reason why the leg is winding .