A charge of grievous bodily harm with intent will be heard at Lincoln Crown Court.
Luke Garner of Burrows Close, Grantham, is alleged to have committed the offence in New Street, Grantham, on June 26.
Garner is also charged with possession of an offensive weapon relating to the same alleged incident.
Garner has yet to enter a plea to either charge.
He will next appear at Lincoln Crown Court on August 12.
He was released on bail with the conditions he does not contact the alleged victim and does not enter New Street.