A Holmen man confessed to striking his girlfriend in the head with a hammer before slicing her throat early Sunday while the couple’s two young children were inside the home, according to court records.