Mount your repository directory as a volume to /repo and git is the entrypoint command therein.
docker run --rm -it -v $PWD:/repo jpuck/git:2.12.2-1 --version
Content type
Image
Digest
Size
333.9 MB
Last updated
over 9 years ago
docker pull jpuck/git:2.12.2-1