via XCode), this guide will also walk you through how to change your path to use the official (non-Apple) distribution. Given that you may have Git already installed (e.g. First we will install Homebrew and then install Git. In this guide we are going to walk through how to upgrade Git via Homebrew.
The good news is that this issue has been patched and the fix is available in version 2.17.1.
Recently a vulnerability in Git was discovered that could lead to arbitrary code execution when a developer utilizes a malicious repository.