On a Riemannian manifold $(M,g),$ we have $D^g,$ Levi-Civita connection, the only connection that is metric (i.e. $D^g g=0$) and without torsion (i.e. $T^{D^g}=0$).
My question is that if I have say $\nabla$ another connection on $(M,g)$ that is metric (i.e. $\nabla g =0$) and it has torsion (otherwise $\nabla=D^g$) is there any relation between $\nabla $ and $D^g$ ?
The difference between two connections on $TM$ is a tensor which eats two vector fields and spits out one vector field. On the other hand, the sum of a connection and such a tensor is another connection. Hence, fixing a connection $\nabla^0$, the space of connections is identified with the space of tensors of type $(1,2)$ through the map $\nabla\mapsto S(\nabla):=\nabla-\nabla^0.$
Now, if the connection we fix, $\nabla^0$, is compatible with a Riemannian metric $g$, then a connection $\nabla$ is also compatible with the metric if and only if the tensor $S=S(\nabla)$ satisfies the condition $$g(S(X,Y),Y)=0$$for any two vector fields $X$ and $Y$. Indeed, if $\nabla g=0$, then$$\begin{align}g(S(X,Y),Y)&=g(\nabla_XY,Y)-g\left(\nabla^0_XY,Y\right)\\ &=\frac{1}{2}X(g(Y,Y))-\frac{1}{2}X(g(Y,Y))\\&=0.\end{align}$$ On the other hand, suppose $\nabla$ satisfies the above condition and let $X$ and $Y$ be vector fields such that $\nabla_XY=0$ (maybe at a point). Then $$\begin{align}X(g(Y,Y))&=2g\left(\nabla^0_XY,Y\right)\\&=2g\left(\nabla_XY,Y\right)\\&=0,\end{align}$$ and this means that parallel translation with respect to $\nabla$ preserves $g$.