A row over drug abuse ended in a Riddings woman being assaulted by her partner, a court was told.
Victim Louise Robinson told police she and Kyle Oates had split up several times because he was using heroin.
She was at home with Oates, 25, and his friend on September 8 and suspected he was taking heroin again.
Becky Mahon, prosecuting, told Chesterfield magistrates: “He admitted it and she told him the relationship was over. He began to shout. She then felt a punch to her shoulder blade.”
Oates threw a hair gel bottle at Ms Robinson and threatened her but he left after she said she was calling police.
Mrs Mahon added: “He said they had been arguing all week since she had been out and danced with another male and she admitted having another man’s number on her phone.
“He said he shoved her rather than punched her and the bottle missed her.”
She added that Ms Robinson did not want a restraining order preventing him from contacting her but wanted him to “sort out his anger management issues”.
Oates, who was moving from Station Road, Codnor Park, Ironville, to Windmill Rise, Somercotes, admitted assault.
He had been jailed for a previous attack on Ms Robinson in which she was kicked.
This time the bench imposed 120 hours unpaid work and a one-year probation supervision order, including a drug rehabilitation programme, with £85 costs.
John Wilford, for Oates, said: “It seems that if he can control the drug issues she is interested in starting the relationship again.
“He is motivated to change and get back into work.”
The court heard he was on medication to keep him off heroin.