The measure was taken so he could receive the intensive counselling required.
"You rejected anything that was put in place to help you," Judge Phillips said.
On July 11, 2017, while at a South Dunedin training centre, the defendant approached a woman who "had been saying bad things about him".
The "ferocious" assault began with six punches to the face, which knocked the victim to the ground.
As she tried to protect herself, he kicked her in the head as hard as he could and followed it up with two stamps to the temple.
While the judge condemned the defendant for his crimes, he lamented his personal circumstances. The court heard the man had gone into care at the age of 2 and was moved 13 times between homes within a year. At 13 years old he was living in a car.
Gangs, violence and drugs were the norm, Judge Phillips said.
"You're a young man who has had no chance or opportunity in life whatsoever and I feel very sad about that," he said. The defendant was jailed for three years and two months.