There are three basic ways to join the rafters at the ridge.
This is the most basic way which is to just butt the two rafters together. Most of the time these are secured to each other with metal fasteners. But you could peg them.
Timber Frame Construction Details
Your Resource for Timber Frame Construction Details, Joints and Joinery