Getting along with

気(き)が合(あ)う means to get along or be on the same wavelength. Literally, two people’s 気 (dispositions) 合う (match).

Dictionary Definition

考(かんが)え方(かた)や感(かん)じ方(かた)が通(つう)じ合(あ)う。

The way of thinking and feeling is understood by each other.

Goo Dictionary

Further Reading

Examples

Kindred spirits in golf with 気が合う

Only the edge of Rinko's blushing face shows at the left, her eyes closed, while several overlapping speech bubbles fill the rest of the panel.
俺物語!! » Volume 3 » Page 170

Takeo’s girlfriend Rinko visits to study with him, but Takeo’s parents take turns interrupting them to get to know her better. Takeo’s father, Yutaka, asks if she watches golf.

凛子(りんこ):
「あ ゴルフですか。あんまり観(み)ないです」
“Ah, golf? I don't watch a lot of it.”
豊(ゆたか):
「おもしろいよー!石川(いしかわ)くんとかは知(し)ってる?」
“It's fun! Do you know about Ishikawa-kun?”
凛子(りんこ):
「ハイ。家(いえ)でお父(とう)さんが観(み)てます」
“I do. My father watches it at home.”
豊(ゆたか):
「お父(とう)さん ゴルフする人(ひと)なの。気(き)が合(あ)うね」
“So your dad's a golf guy. We're kindred spirits, eh?”

Kindrid spirits in drinking tea with 気が合う

Seen from behind, an elderly man and Hinata stand side by side at a large window in the nurse's office, smiling at each other. Hinata breathes out a puff of steam.
老女的少女ひなたちゃん » Volume 3 » Page 104

Hinata escorts a classmate to the school nurse. There, she meets an elderly man sipping tea. Seeing her interest, the old man offers her a cup.

日向(ひなた):
「……オレもっ 学校(がっこう)でお茶(ちゃ)が飲(の)めて嬉(うれ)しーですっ」
“It also makes me happy when I can drink tea at school.”
おじいさん:
「おやぁ 気(き)が合(あ)いますね」
“Oh, we're kindred spirits, huh?”