Currently we are using RHEL7 and rh-git29 (from Red Hat Sofware Collection), because the standard git is too old (1.8).
To use a software from a software collection you have to enable it (permant: "scl scl_source enable rh-git29" or temporay: "scl enable rh-git 'git <something>'"). This sets some environment variables (like PATH or LD_LIBRARY_PATH) and you ready to use it.
I know there are multiple ways to tell phabricator a different PATH variable (php config, phabricator config, ...), but afaik there is no way to set a different LD_LIBRARY_PATH variable which is needed for rh-git29. Even setting LD_LIBRARY_PATH in php-fpm.conf didn't work. Phabricator seems to ignore it.
It would be good if you could pass other enviroment variables (like LD_LIBRARY_PATH) to phabricator.