Install Git on Mac OS

Git installed on Mac OS via HomeBrew

 1. Install homebrew 

ruby -e \ "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"

  After the installation is complete, the main program of Homebrew is installed in /usr/local/bin/brew, and the installation guide files of all the software supported by Homebrew are saved in the directory /usr/local/Library/Formula/.

  Execute the following command to install Git via Homebrew.

brew install git

  Installed using Homebrew, Git is installed in /usr/local/Cellar/git/<version>/, and the executable program automatically creates a rich symbolic link in the /usr/local/bin directory, which can be accessed directly in the terminal program.

Installed open source packages  can be viewed with the brew list command .

brew list

You can also view the detailed path and installation content of a software installation .

 1 brew list git 

 

  

  

  

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324888183&siteId=291194637