Given that this is from over a year ago, I trust you have already resolved this.
But, for future reference, macOS does not come with git by default. You have to install Xcode and the Xcode Command Line Tools. You can download and install Xcode from the Apple Developer site, but it is easier and more reliable (as a normal user, one that does not have to run pre-release versions) to install it from the App Store.
You can install the Command Line tools from the (you got it) command line (Terminal), with
xcode-select --install
There are other ways to install just git without Xcode.
The most popular being using the open-source package manager HomeBrew (brew)
Install brew following the instructions on their website https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(if you know what you're doing, this can be a little daunting - you are essentially downloading a shell script off the internet and running it as your user!)
Once installed, you can install git with
brew install git