Homebrew installed git not working
Solved it! I had another git folder in /usr/local/ which had symlinks in /usr/local/bin. So I had to move that git folder elsewhere and then installed and reinstalled git with homebrew.