Suppose I have the Gamma matrices given by $\gamma ^\mu$. Under some unitary transformation $U$ I can consider $\tilde{\gamma^{\mu}} = U\gamma ^\mu U^\dagger$. Since I have:
$$ \{ \gamma^\mu, \gamma^\nu \} = 2g^{\mu \nu}\textbf{I} $$
I can compute $\{\tilde{\gamma^{\mu}},\tilde{\gamma^{\nu}}\} $ and show that
$$\{\tilde{\gamma^{\mu}},\tilde{\gamma^{\nu}}\} = U \{ \gamma^\mu, \gamma^\nu \} U^{\dagger} = 2U g^{\mu \nu} U^{\dagger} $$
My question is the following. If I consider $\tilde{\gamma^{\mu}}$ to be a different representation of the gamma matrices, do I take
$$\tilde{g^{\mu}} = U g^{\mu \nu} U^{\dagger}$$ as a different representation of the metric, or as a transformed version of the metric or at least what happens to the metric?
In my QFT class, my instructor said one can take
$$ U g^{\mu \nu} U^{\dagger} = g^{\mu \nu} UU^{\dagger} = g^{\mu \nu}$$
in flat space time when $g^{\mu \nu}$ is just the Minkowski metric. But even in this case in non-Cartesian coordinates, this metric depends on coordinates so I'm not sure how to understand the transformation of the metric.