Some of it depends on how much this heifer has been handled and of course her temperment too.
We try to handle ours a fair amount so they are used to being brushed and scratched.
We use a stanchion to restrain the cow, there is a solid wall on the other side of her so she can't swing away from you.
Offer her something to eat. Brush her a bit and brush down around the belly and towards the udder, and see how she reacts.
A good sized helper lifts the tail up
STRAIGHT over the back, as that tends to paralyse the hind end, and allows the milker to do his/ her job, whether by hand or machine.
Alot of heifers usually will try to kick, at least a bit when you try to milk her the first time, however most heifers discouver that a very full bag hurts and it is relief to get rid of the milk, and usually they settle down after while.Afterwards they get a bit of grain and are scratched and brushed so they tend to associate being milked with a reasonably pleasent experiance.
On a commercial farm they are put in the line up, kickers put on, or tail pulled over their back, machine put on and left to figure it out.
Or at least that is what they did where I worked.
I have ran onto a few that were total "bags" to put it mildly and weeks and months later you were still taking your life into your hands to milk the beast. They would jump on the cow in front of them in the line up,
which of course upset everything, and kick like a mule, and machines would come flying off as cows were thrashing around. It was a nightmare to say the least.
If it would have been my cow she would have gone to the butcher, as she was nuts to put it mildly. Most are not that bad, but the nut cases do exist..
Nite Hawk