About " to square away".
I'd like to ask about the meaning " to square away" in this sentence : " We squared away and ran for it". I can't catch the meaning of the action they've done. It's from this :
On the morning of the third day, shortly after eight bells, a cry
that the boat was sighted came down from Smoke at the masthead. All
hands lined the rail. A snappy breeze was blowing from the west,
with the promise of more wind behind it; and there, to leeward, in the
troubled silver of the rising sun, appeared and disappeared a black
We squared away and ran for it.
Could you explain the meaning? Thank you in advance!