To get along well with someone; to be like-minded or congenial — to feel comfortable together because personalities or tastes match.
初めて会ったけれど、彼とはすぐに気が合った。
We met for the first time, but I immediately clicked with him.
仕事のチームは気が合うメンバーばかりで、雰囲気が良い。
The work team is made up of congenial members, so the atmosphere is good.
気が合う友達と旅行するのは楽しい。
It's fun to travel with friends you get along with.