Add ability to build and install git in deps/Makefile.
Addresses #1709
Install git as part of `make dist` on Mac.
Update deps/.gitignore.