According to the consistency rules here: https://github.com/docker-library/official-images#consistency
The dockerfile should be changed to
CMD "git --help"
This will allow tools such as jenkins to run jobs in the way that it is expecting rather than having to hard code the overriding of the entrypoint every time.