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

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
主站蜘蛛池模板: 开江县| 茂名市| 黄冈市| 阜平县| 盐津县| 永春县| 福海县| 子洲县| 遂宁市| 乌兰浩特市| 邮箱| 石首市| 佛学| 大连市| 象州县| 舒兰市| 和田县| 肥乡县| 霍山县| 兰州市| 潜山县| 墨竹工卡县| 浠水县| 京山县| 汝南县| 大悟县| 安溪县| 同德县| 西青区| 绥中县| 邢台县| 密云县| 平山县| 河池市| 博兴县| 都昌县| 利川市| 资溪县| 高淳县| 临朐县| 衡东县|