I use git from Homebrew, which updates more frequently. It might also be even smarter to pull the project from GitHub and build it from there. (Assuming Homebrew doesn't already do this.)
This doesn't address the issue, as that still leaves the vulnerable git binary on your system. It just takes one call to /usr/bin/git instead of /usr/local/bin/git to fall victim.