A New York resident has been identified as one of the three people killed at the Gilroy Garlic Festival on Sunday.

Trevor Irby, 25, of Romulus, was attending the three-day event with his girlfriend, Sarah Warner, who managed to escape unscathed.

Irby’s alma mater, Keuka College, confirmed his death in a statement Monday.

“It is with profound sadness that I share the devastating news that a member of the Keuka College family was among the victims of the mass shooting over the weekend in California,” said school president Amy Storey, describing Irby as a biology major who graduated in 2017.

“Our hearts go out to Trevor’s family and loved ones,” she added. “We also send sincere condolences to College alumna Sarah Warner, who was with Trevor at the California garlic festival where the shooting took place. We were relieved to learn that Sarah was not physically injured in the shooting. We offer our support and prayers to Sarah and her family.”

Keuka officials plan to hold a vigil on campus — located roughly 70 miles southwest of Syracuse — so that “those alumni, students, faculty, staff, and community members who knew Trevor and who know Sarah can join in fellowship and reflection.”

They told The Post that it will likely be held sometime after classes recommence in late August, but nothing has been determined.

Irby’s Facebook page lists him as a graduate of Romulus Central School and current employee at Keuka College. Most of his photos are of him and his girlfriend doing things together.

“Life comes with no guarantees, no time outs, no second chances,” Irby writes in a post from 2010. “You just have to live life to the fullest, tell someone what they mean to you and tell someone off, speak out, dance in the pouring rain, hold someone’s hand, comfort a friend, fall asleep watching the sun come up, stay up late, be a flirt, and smile until your face hurts.”

Irby and his girlfriend were at the Gilroy Garlic Festival on Sunday — the last day of the three-day event — when suspected gunman Santino William Legen set upon them and other attendees with an “AK-47 type assault rifle,” according to cops.

The 19-year-old allegedly shot Irby and 17 others before being killed by police. Irby and two other victims — a 6-year-old boy and 13-year-old girl — died and the others were hospitalized in fair to critical condition.

People who knew Irby from high school and college took to social media on Monday to remember him.

“Still can’t believe this,” wrote Tarren Hilton on Facebook. “Trevor Irby was one of the greatest kids growing up you surely will be missed bud.”

Keuka alum Samantha Napolitano said, “This is heart breaking. Trevor Irby I am so thankful to have known you and to have had a friend like you my freshman year. The keuka community is filled with heavy heart.”