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

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
主站蜘蛛池模板: 白山市| 永德县| 石河子市| 黄陵县| 卓资县| 辽宁省| 镇宁| 若尔盖县| 喀什市| 错那县| 莲花县| 高尔夫| 甘孜| 陆丰市| 长乐市| 荥经县| 水富县| 怀远县| 新疆| 彭州市| 黑山县| 信宜市| 罗城| 松溪县| 永川市| 宜章县| 岳普湖县| 大城县| 富锦市| 乐平市| 马山县| 珠海市| 子长县| 德格县| 昌平区| 麦盖提县| 天水市| 天全县| 监利县| 衡东县| 泸西县|