Add git to the list of ports. Git from ports > git from xcode