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

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
主站蜘蛛池模板: 二连浩特市| 科尔| 攀枝花市| 陇西县| 嘉祥县| 通化市| 开封市| 元谋县| 阜新市| 光山县| 寿阳县| 太和县| 公安县| 汕头市| 石嘴山市| 盐城市| 郯城县| 綦江县| 苗栗市| 大宁县| 额尔古纳市| 天镇县| 林口县| 东乡县| 通许县| 宁武县| 英吉沙县| 延吉市| 沙洋县| 寿宁县| 五莲县| 科技| 武定县| 安阳市| 三门县| 柏乡县| 天长市| 新民市| 定安县| 调兵山市| 岚皋县|