$ brew install git
$ git --version
git version 2.8.1 $ brew install git
$ git --version
git version 2.8.1 0 find /usr/bin/ /usr/local/bin/ /usr/sbin/ /sbin/ |grep -w git$ find /usr -name git -type f -xdev -exec {} -v \;
All your invocation of find does is enumerate every file (or directory) under /usr named "git" and execute it with the -v option. In addition to dumping a lot of error messages, all that would do is eventually run "/usr/bin/git -v" and inform you that yep, your system still has the vulnerable version of git installed.
In other words, tadfisher's point, which I now wish had been made explicitly, is that simply installing the fixed version of git is possibly insufficient to secure your system. You also ought to either disable /usr/bin/git or convince yourself that no program will invoke it. Disabling /usr/bin/git is probably easier.
$ brew install git
==> Downloading https://homebrew.bintray.com/bottles/git-2.6.1.el_capitan.bo...
$ git version
git version 2.6.1
$ brew upgrade git
Error: git 2.6.1 already installed
brew update
brew upgrade git