I currently know of two methods. The first is the “traditional” way, which is described in the “Basic Boating Book”. This is done with the mast upright.
The second method for a horizontal mast uses a long rod (thanks for details Oliver!)
Have a look at the post at the top of the forum list called “Basic Boating Book” and the comment below it for details.
I hope that helps someone!
Happy sailing 🙂