How to attach a potentiometer to a servo motor shaft

I want to have the servo motor turn the potentiometer so i can read the position of the servo motor.

I know they often come with POs built in, but i will be turning the motor off and setting the position by hand.

I looked at pics of them but i dont see how i would attach them to a shaft.

"they" ?
"them" ?

Get a shaft coupler. Done. If you have heard of motors, (which, BTW, have SHAFTS)
then you must have heard of shaft couplers, since that's what everyone uses with their motors.

What exactly is your electronics background ?