To climb steadily upwards, from the motion of a sailor climbing shrouds on a sailing ship (originally "hand over hand").