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

  • Learn WebAssembly
  • Mike Rourke
  • 124字
  • 2021-08-13 15:38:57

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
主站蜘蛛池模板: 互助| 灵丘县| 舞阳县| 乐业县| 白朗县| 盘锦市| 石台县| 蒲江县| 工布江达县| 南昌县| 郑州市| 尤溪县| 兖州市| 石柱| 池州市| 安陆市| 鄢陵县| 商南县| 高台县| 冕宁县| 章丘市| 高平市| 岐山县| 安阳县| 汾阳市| 南郑县| 孝昌县| 阜平县| 岳阳市| 满城县| 罗江县| 无极县| 通州区| 宜昌市| 滦南县| 龙口市| 昔阳县| 巴南区| 灵石县| 巴彦县| 历史|