foreword
The method of installing different versions of git on Mac, most of them are downloaded by brew on the Internet, but this only supports the latest version of git, and sometimes xcode or operating system version restrictions make it impossible to use the latest version or when you only want to use the specified version, it will not work up. Here is a simpler solution.
solution
First visit the git-osx-installer Activity , this site.
Find the specified version of dmg and install it.
Pass git --version
to verify that the installation was successful.