Will Antoniuk opened the scoring for the visitors in the 17th minute after dispossession Michael Aitken on the edge of the area and his shot come cross beat Jay Cantley at the far post.
READ MORE: Military Exercise to take place in Borders this month says MOD
Nicky Reid hit the post as the home side tried to get back into the game.
Then just before the break goal scorer Antoniuk was shown a straight red for a reckless challenge on Aitken just in front of the dugouts.
The second half belonged to Gala who mounted attack after attack but the students’ keeper was outstanding form denying Jamie Semple and Reid on several occasions.
Semple thought he had equalised with a header from a corner and although the ball appeared to have crossed the line before being clawed out the referee waved play on.
READ MORE: Witness appeal after van broken into in Borders town
Just when it looked as though it wasn’t going to be Gala’s night, they were awarded a penalty when Danny Galbraith’s cross from the left was handled by an Edinburgh Uni defender.
And Galbraith made no mistake from the spot, sending the keeper the wrong way with two minutes plus added time left.
Gala continued to push forward but the students looked dangerous on the break.
The winner arrived three minutes into injury time when Alan Smith’s cross from the right was headed home from close range by Semple to the delight of the home fans.
The result sees Gala move into ninth place in the Lowland League
The Nil by Mouth man of the match was Liam Watt.
Martin Scott’s men face a trip to Cowdenbeath on Saturday.
DISCLAIMER:- Denial of responsibility! angelcrestgardens.com is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email at firstname.lastname@example.org The content will be deleted within 24 hours.