The repo should just be some files, not actively "managed" from inside or outside the container. Interfering from outside might still cause some confusion.
I assume the volume is created in /var/lib/docker/volumes. What's the error once you configured username and email?
If you can't get it to work from outside, you can "log into" the running docker container with docker exec -ti CONTAINERID /bin/sh.