LOWELL -- A 22-year-old Chelmsford man was ordered held without bail on an attempted-murder charge after his former girlfriend accused him of choking her when she asked him to move out.

In Lowell District Court on Thursday, Edward L. Gibbons, who also lists his address as being in Littleton, was held pending a Jan. 15 dangerousness hearing after pleading not guilty to attempted murder and assault with a dangerous weapon.

In court, the alleged victim also obtained a year-long restraining order against Gibbons. Since both are UMass Lowell students and share some classes, Judge Ellen Caulo ordered Gibbons to stay 25 yards away from the victim.

The victim told Chelmsford police she had been having ongoing issues with Gibbons and had asked him Wednesday to move out of the Chelmsford apartment they shared by the end of the month.

Gibbons allegedly became upset and stormed into the living room. The girlfriend went into the kitchen for some food, when Gibbons allegedly grabbed her, threw her against a wall and choked her to the point where she nearly lost consciousness, according to court documents.

While she was on the ground, she said Gibbons repeatedly kicked her, documents state. She was eventually able to escape.

Police found Gibbons car parked outside a hotel. When officers approached, Gibbons fled on foot. A K-9 was called in to search the area. A short time later, Gibbons turned himself in to the police.

Follow Lisa Redmond on Tout and Twitter@lredmond13_lisa.