A hero cop who miraculously survived being shot in the head was promoted to sergeant Friday.

Kevin Brennan, who was wounded in Brooklyn in January, took the test late last year. He was promoted to detective in February after the brave cop was shot by a thug outside a Bushwick housing project.

Police Commissioner Ray Kelly said at the promotion ceremony at One Police Plaza that Brennan made “a miraculous recovery from a near fatal gunshot wound he sustained in the line of duty last January.”

Brennan and 47 other cops were promoted to sergeant on Friday.

“I feel proud to be a sergeant, I put my life on hold to study,” said Brennan. “The last seven months have been crazy—getting shot, having a daughter, being promoted to detective and sergeant.”

Brennan is undergoing physical therapy and home with his daughter who turned six months old last week. He said he is experiencing a lot of pain in his spine.

Manhattan cop Nelson Vargara was also shot in the Bronx last Sunday. “I don’t want to see any police officer get shot, or anyone shot,” said Brennan. “I hope we get more guns off the street.”