One of the more significant engagements took place in July 1779 , when American troops under Anthony Wayne defeated a British garrison of 600 troops at Stony Point , just north of Haverstraw in Rockland County .