Installing git on El Capitan is easy:
brew install git and you’re set. If you
want a fancier version, then activate some options
brew gives you, e.g.
brew install git --with-brewed-openssl --with-brewed-svn --with-gettext
brew will do its magic. But suppose you’d like to dig deeper …