Hit/hit it off/ hit on/ hit the mark
Hit as in something successful dates from the early 19th century because it hit the mark. Hitting the mark in turn derives from target shooting (archery) in The Middle Ages. A modern example of this usage would be a hit record, a record that hits the charts, which are the target. Hit as in to kill or murder is American criminal slang from the 1950s. To hit on someone is sexual harassment and this usage dates from the 1970s. Hit it off with someone, meaning to get on well dates from the late 18th century.