Gillingham failed to return to the top of League Two after they could only muster a draw at York.
Cody McDonald came close to putting the Gills in front when he looped a header into Michael Ingham's arms before later shooting just wide.
Minstermen forward Michael Rankine had a header from Ashley Chambers's corner blocked on the line by Leon Legge.
Neither side could find a winner, although Gillingham's Charlie Lee hit the crossbar from 30 yards late on.
VIEW FROM THE DRESSING ROOM
York City manager Gary Mills told BBC Radio York:
"I thought from start to finish today it was a wholehearted and committed performance to get a result and a clean sheet.
"After what we've been through over the last couple of weeks it's not been easy for us but to come out at home and put in a performance like that I thought my players were outstanding.
"We've conceded goals and everybody looks at the back four and the goa keeper but it's got to start from the front.
"Michael Rankine's performance tonight was immense. It's possibly what we've been missing a little bit."
Gillingham boss Martin Allen told BBC Radio Kent:
"When you play any team that's on the back of a 4-0 hammering, you're going to have your work cut out.
"We stepped higher up the field in the second half and went after them and played very well.
"I would normally go for the win but I had to draw back and keep the right balance. Four points from two away games is a good tally."
Live Text Commentary
Full Time The referee brings the game to a close.90:00 +3:48
Foul by John McGrath on Myles Weston, free kick awarded. Chris Whelpdale takes the free kick.90:00 +2:48
Jamal Fyfield produces a cross, save made by Stuart Nelson.90:00 +2:07
Centre by Matty Blair, clearance by Leon Legge.90:00 +1:44
Matty Blair delivers the ball, clearance by Adam Barrett.90:00 +0:49
A cross is delivered by Jamal Fyfield.86:19
Effort on goal by Michael Rankine from just inside the area clears the bar.84:49
Charlie Lee has a volleyed shot striking the post.84:11 Substitution
Substitution Charlie Lee is brought on as a substitute for Anton Robinson.82:28
Michael Rankine fouled by Joe Martin, the ref awards a free kick. John McGrath delivers the ball from the free kick left-footed from right wing, clearance made by Leon Legge.80:24 Substitution
Substitution Ashley Chambers goes off and Patrick McLaughlin comes on.79:18
Corner taken right-footed by Anton Robinson from the left by-line, Cody McDonald has a headed effort at goal from close in which goes wide right of the target.78:25
Drilled right-footed shot by Matty Blair. Save by Stuart Nelson.76:49
Adam Birchall handles the ball and concedes a free kick. Michael Ingham takes the direct free kick.76:35 Substitution
Substitution Alex Rodman joins the action as a substitute, replacing Jon Challinor.72:54
Unfair challenge on Anton Robinson by Jon Challinor results in a free kick. Free kick crossed left-footed by Andy Frampton.71:41
Inswinging corner taken from the left by-line by Anton Robinson.69:30
Chris Whelpdale gives away a free kick for an unfair challenge on John McGrath. Ashley Chambers restarts play with the free kick.69:06
Scott Kerr fouled by Anton Robinson, the ref awards a free kick. Direct free kick taken by John McGrath.68:20
Free kick awarded for a foul by Andy Frampton on Michael Rankine. Ashley Chambers takes the free kick.
Jon Challinor challenges Joe Martin unfairly and gives away a free kick. Free kick taken by Anton Robinson.66:35
Cody McDonald sends in a cross, Matt Fish takes the chance to get an effort at goal and missed to the right of the goal.66:20
The ball is swung over by Cody McDonald, Michael Ingham makes a save.65:28
Inswinging corner taken left-footed by Cody McDonald played to the near post.64:40
Centre by Chris Whelpdale.63:33 Substitution
Substitution Adam Birchall on for Deon Burton.62:47
John McGrath gives away a free kick for an unfair challenge on Cody McDonald. Free kick taken by Cody McDonald.60:39
Free kick awarded for an unfair challenge on Chris Whelpdale by John McGrath. Direct free kick taken by Matt Fish.59:53
Deon Burton concedes a free kick for a foul on Daniel Parslow. Direct free kick taken by Michael Ingham.54:14
Cody McDonald gives away a free kick for an unfair challenge on Jack O'Connell. Michael Ingham restarts play with the free kick.52:54
Ashley Chambers restarts play with the free kick.52:54 Booking
Booking Matt Fish booked for unsporting behaviour.52:32
Ashley Chambers fouled by Matt Fish, the ref awards a free kick.51:27
Joe Martin delivers the ball, Cody McDonald has a header from close range and clears the crossbar.51:18
Joe Martin crosses the ball, clearance by Jack O'Connell.50:21
The offside flag is raised against Deon Burton. Free kick taken by Michael Ingham.49:47
Jon Challinor sends in a cross, clearance by Leon Legge.49:27
Foul by Myles Weston on Curtis Obeng, free kick awarded. Jack O'Connell takes the free kick.48:54
Inswinging corner taken left-footed by Cody McDonald played to the near post, Daniel Parslow makes a clearance.47:56
Corner taken by Cody McDonald played to the near post, Andy Frampton takes a shot. Save made by Michael Ingham.46:51
The ball is delivered by Jon Challinor, clearance by Adam Barrett. John McGrath takes a shot from inside the box clearing the bar.45:26
Michael Rankine challenges Adam Barrett unfairly and gives away a free kick. Matt Fish restarts play with the free kick.45:01
The match restarts for the second half.45:01 Substitution
Substitution Myles Weston is brought on as a substitute for Charlie Allen.45:00 +1:07 Half time
Half Time The referee blows for half time.43:02
Unfair challenge on Charlie Allen by Ashley Chambers results in a free kick. Free kick taken by Stuart Nelson.41:34
Inswinging corner taken by Ashley Chambers, clearance by Leon Legge.41:08
Inswinging corner taken right-footed by Ashley Chambers from the left by-line, Adam Barrett makes a clearance.40:39
Inswinging corner taken by Ashley Chambers, Michael Rankine takes a shot. Blocked by Leon Legge.39:41
Foul by Joe Martin on Curtis Obeng, free kick awarded. John McGrath crosses the ball in from the free kick, save made by Stuart Nelson.39:02
John McGrath takes a inswinging corner from the right by-line to the near post, Leon Legge manages to make a clearance.38:23
Corner taken right-footed by Ashley Chambers, Michael Rankine takes a shot. Stuart Nelson makes a save.38:09
Centre by Curtis Obeng, clearance made by Joe Martin.36:18
The ball is swung over by Jamal Fyfield, Curtis Obeng produces a header from inside the area that goes over the bar.34:24
Michael Rankine gives away a free kick for an unfair challenge on Matt Fish. Matt Fish restarts play with the free kick.33:40
John McGrath challenges Charlie Allen unfairly and gives away a free kick. Free kick taken by Charlie Allen.33:03
Matty Blair concedes a free kick for a foul on Joe Martin. Joe Martin takes the direct free kick.32:09
Matty Blair has an effort at goal from the edge of the area that misses to the right of the target.30:17
The ball is crossed by Jon Challinor, Michael Rankine concedes a free kick for a foul on Adam Barrett. Direct free kick taken by Stuart Nelson.29:26
Shot from outside the area by John McGrath misses to the left of the target.29:15
A cross is delivered by Jamal Fyfield, clearance by Adam Barrett.27:04
Free kick awarded for an unfair challenge on Curtis Obeng by Anton Robinson. Free kick taken by Jon Challinor.26:20
Michael Rankine takes a shot. Save by Stuart Nelson.25:50
Direct free kick taken by Jon Challinor.25:50 Booking
Booking Joe Martin is cautioned.25:37
Joe Martin challenges Matty Blair unfairly and gives away a free kick.22:17
Effort on goal by John McGrath from outside the box goes harmlessly over the bar.21:34
Effort from the edge of the box by Cody McDonald goes wide of the left-hand post.19:16
The ball is sent over by Jamal Fyfield, clearance by Adam Barrett.15:59
Shot from just outside the box by John McGrath goes over the target.15:09
John McGrath takes a inswinging corner from the right by-line played to the near post, save by Stuart Nelson.13:12
Michael Rankine takes a shot. Save by Stuart Nelson.12:39
Anton Robinson challenges Scott Kerr unfairly and gives away a free kick. Free kick taken by Curtis Obeng.11:49
Matt Fish produces a left-footed shot from just outside the box that misses to the right of the net.9:50
Matt Fish delivers the ball, Daniel Parslow makes a clearance.8:44
The ball is swung over by Charlie Allen, Cody McDonald takes a shot. Save by Michael Ingham.5:58
Effort on goal by Matty Blair from just outside the penalty area goes harmlessly over the target.3:54
Deon Burton concedes a free kick for a foul on Curtis Obeng. Michael Ingham restarts play with the free kick.0:37
Deon Burton concedes a free kick for a foul on Jon Challinor. John McGrath takes the free kick.0:00
The referee gets the game started.
Live data and text provided by our data suppliers