Cheltenham beat Aldershot to extend their unbeaten run to 10 matches, while the visitors are now without a goal in their last five games.
Luke Garbutt and Jimmy Spencer combined to set up Luke Summerfield, who put the hosts ahead with a 20-yard drive.
Cheltenham had to wait until the final minute to secure their win as Kaid Mohamed latched on to Jeff Goulding's through ball.
Peter Vincenti headed Aldershot's best chance of the game over the bar.
VIEWS FROM THE DRESSING ROOM
Cheltenham Town Manager Mark Yates told BBC Radio Gloucestershire:
"The players have shown again what they're about. A lot of people expected us to get beat today on the back of being away (in Portugal). We showed a lot of character, togetherness and that was what the trip was about."
"We are up there with the top of the league boys because we work as a team and we've found a system that suites the boys. The work rate they put in is as good as there is in this league and the quality we have has got us to where we are now.
"We're about ourselves and we don't take any notice of the teams below us."
Aldershot manager Dean Holdsworth told BBC Surrey:
"The result doesn't say a lot about the game. The players come away with a lot of credit but no credit in the result.
"The amount of chances we created, we deserved something. I asked them for maximum effort and passion.
"We did put the ball in the right areas but we just didn't have the finishing touch. That's my only disappointment."