Install different versions of git on Mac

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.

insert image description here
Find the specified version of dmg and install it.

Pass git --versionto verify that the installation was successful.

Guess you like

Origin blog.csdn.net/mevicky/article/details/124745781