Etymology
Today it means: A rope at the bows of a ship used to fasten it to a wharf, etc. Full definition →
From head + fast.
Etymology from Wiktionary, CC BY-SA 4.0.