I was mainly resolving git commit. Didn’t try git push myself.
I think if you use volumes/ bind mount in docker (if not you should follow @zef guide) , the space folders at your server level will be available inside the docker shell environment.
So if you set your remote origin in the server level for the space folder, supposedly it should work because git will just check what’s inside the .git folder (i think so not 100% sure).
Have you set your remote origin?
You can also check the network call to see what’s happening.