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

Installing Git on macOS

Git is probably already available if you're using macOS. macOS comes bundled with Apple Git, which will probably be a few versions behind the most recent version. For the purposes of this book, the version you already have installed should be sufficient. If you wish to upgrade, you can install the most recent version of Git using Homebrew by running the following commands in Terminal:

# Install Git to the Homebrew installation folder (/usr/local/bin/git):
brew install git

# Ensure the default Git is pointing to the Homebrew installation:
sudo mv /usr/bin/git /usr/bin/git-apple

If you run this command, you should see /usr/local/bin/git:

which git

You can check to ensure that the installation was successful by running this command:

git --version
主站蜘蛛池模板: 望谟县| 丽水市| 二连浩特市| 合江县| 仁布县| 满洲里市| 定日县| 舒兰市| 民勤县| 潞西市| 铜山县| 韶关市| 武川县| 娱乐| 色达县| 沭阳县| 麻栗坡县| 巍山| 集贤县| 德庆县| 南投市| 随州市| 屏东市| 汶川县| 东方市| 张掖市| 中宁县| 巍山| 碌曲县| 西乌珠穆沁旗| 武穴市| 双流县| 类乌齐县| 虹口区| 亳州市| 夏津县| 高州市| 华安县| 吴堡县| 惠安县| 呼伦贝尔市|