Jack Crawley, 19, was detained in the Bristol area yesterday and remanded in custody following an incident near Acaster Malbis, York on Friday, 5 January.
He was charged with attempted murder and possession of an offensive weapon in public, and appeared at York Magistrates' Court today.
Crawley was remanded to appear at Leeds Crown Court on Tuesday, 5 March.