Definition of “hit it off” - Learner’s Dictionary

hit it off

informal

B2 If people hit it off, they like each other and become friendly immediately.

(Definition of “hit it off” from the Cambridge Learner's Dictionary © Cambridge University Press)