DNS only translates names into IP addresses and is oblivious to any port numbers.
However, you can use Apache as a reverse proxy to make the content accessible at git.domain.com
by editing the virtual host file. I believe thisthis answer on Server Fault shows one method of how to do this that should work well for you.