Mark Robertson grabbed the animal and proceeded to strike it after it ran into his garden during an argument with neighbours over him playing loud music in the early hours.
Edinburgh Sheriff Court heard two neighbours were woken by the music coming from Robertson’s previous home at the town’s Muirpark Road at around 5.30am.
One shouted at Robertson’s former co-accused Angela Reid to turn the volume down but Robertson overheard his comments and became enraged.
He challenged the man to come down and fight with him and it was during this exchange the neighbour’s dog ran into Robertson’s garden.
The court was told Robertson, 40, grabbed the dog and punched and kick its head.
The female neighbour ran outside to collect the animal and take it back inside her home and called the police following the sickening incident on December 13 last year.
Robertson was subsequently arrested and taken to Dalkeith police station.
Reid, 45, had faced a charge of threatening or abusive behaviour but her not guilty plea was accepted by prosecutors.
Sheriff Alistair Noble said “custody was still an option” and deferred sentence on Robertson for social work reports to be prepared to next month.
Robertson pled guilty to causing an animal unnecessary cruelty by striking the animal at Muirpark Road, Tranent, on December 13 last year.
He also admitted behaving in a threatening or abusive manner, shouting, swearing, uttering threats of violence, and challenging a man to fight on the same date.