官术网_书友最值得收藏!

Installing Git on macOS

There are several ways to install Git on macOS. The easiest way is to install the Xcode command line tools. Since Mavericks (10.9), you can do this simply by trying to run git from the terminal for the very first time. If you don't have it installed already, it will prompt you to install it, as shown in the following image:

Clicking on the Install button will fire the installation process.

If you want a more up-to-date version, you can also install it via the *.dmg binary installer, downloaded from git-scm.com (it says mavericks in the file name, but just ignore that). Beware the macOS policies while installing packages downloaded from the Internet; to allow execution, you need to hold down CTRL and click on the package icon to open it:

Hold down CTRL and click to let macOS prompt you to open the package

After this, the installation will be very easy-it's just a matter of clicking on the Continue button and following the steps represented in the following screenshot:

Let's start the installation process

Click on the Continue button and then go on; a window like the one shown in the following image will appear:

Here you can change the installation location, if you need; if in doubt, simply click Install

Click now on the Install button to start the installation. After a few seconds, the installation will be completed:

Installation complete
主站蜘蛛池模板: 曲松县| 抚顺市| 交城县| 辽阳市| 南充市| 德令哈市| 霞浦县| 永宁县| 山西省| 长沙县| 白朗县| 哈巴河县| 宁城县| 柏乡县| 喀喇沁旗| 赤城县| 普洱| 舒城县| 潢川县| 潢川县| 青阳县| 澎湖县| 浮山县| 伊通| 特克斯县| 黄平县| 巴东县| 苍山县| 宣城市| 体育| 普定县| 兴宁市| 奉贤区| 屯门区| 康定县| 衡阳市| 合川市| 霸州市| 内乡县| 青河县| 太湖县|