GNURoot provides a chroot of Debian/Gentoo/Fedora etc so you can install whatever you want in there, including the git command-line client.
You can also create such a chroot manually:
https://wiki.debian.org/ChrootOnAndroid
Or go slightly further:
https://wiki.debian.org/Mobile#Articles