Definition of the clove hitch are a knot used to fasten a line temporarily to a post or spar .