Belfast Magistrates’ Court heard the constables had to use CS spray to bring Eamonn Jordan under control during the confrontation in the south of the city.
But the 24-year-old was praised for how he has turned his life around since the incident earlier this year.
Jordan, currently of no fixed abode, admitted criminal damage, possessing an offensive weapon with intent to commit grievous bodily harm, and two counts of assault on police.
Police went to Harberton Park in the early hours of May 18 amid reports of ongoing disturbances at a house on the street. Two constables heard the sound of smashed coming from the rear of the property, where they discovered Jordan brandishing a golf club.
Thousands expected to take part in 'Derry Day' this weekend
Brexit: There’s a fundamental con trick being played over Liz Truss’ Northern Ireland Protocol Bill says Lord Empey
Apprentice Boys of Derry: new era of respect makes for enjoyable ‘Relief’ parade
BBC political editor Enda McClafferty sees the funny side after he’s caught on camera underdressed for live TV report
Two new arrivals in DUP camp as UUP councillor Alan Lewis defects alongside serial party-switcher Henry Reilly
“He made his way towards police and swung the club at the officers’ heads,” a Crown lawyer said. “They shouted at him to drop the club, but he continued to swing it.” CS spray and baton strikes were then deployed to nullify the threat being posed.
Six double-glazed windows had been smashed, with further damage to an internal door and various items of furniture, police said previously.
Jordan also head-butted and kicked the door of a cell van.
During his first court appearance Jordan detailed issues with drug and alcohol dependency. Defence solicitor Denis Moloney confirmed that a drink and drugs awareness course has now been completed in record time.
With Jordan’s parents present in court to support him, Mr Moloney said: “He has turned his life around.”
Confirming the one-year conditional discharge, District Judge Fiona Bagnall acknowledged the defendant’s work in completing the programme.
She added: “I wish him every success.”