Running git commands in private repo inside docker not working correctly

Well, it’s not an ssh issue then. I’m not git expert enough to suggest what to try next.