The incident happened inside and outside Brandywell Stadium.
Derry Magistrates' Court heard today that a man who headbutted another man in the Brandywell Stadium had been banned for three matches by Derry City football club.
Daniel McClintock (28), of Benvarden Avenue in Derry, admitted two charges of disorderly behaviour, one of them inside the Brandywell and one outside on July 18 last year.
The court heard that police on patrol saw a man being ejected from the football stadium by stewards and they said he had headbutted another man inside.
McClintock was told to leave the area but as he was going he started singing 'oh ah up the RA' in front of some tourists.
A short time later the defendant was observed outside the Brandywell and gave police the middle finger as they passed.
When police approached him he made 'offensive comments ' and called police 'black b******s'.
CCTV from inside the ground showed McClintock headbutting another man but the victim could not be identified.
Deputy District Judge Laura Levers said the pre-sentence report in the case 'does hold out some hope' and she wanted to adjourn the case to see if McClintock could stay out of trouble.
She told the defendant that he was risking his liberty but if the probation report was positive she would deal with it in a certain way.
The case was adjourned until August 29.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.