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

  • 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
主站蜘蛛池模板: 浦城县| 鞍山市| 溧水县| 长顺县| 开平市| 庆元县| 皮山县| 安陆市| 喀喇| 遂平县| 嘉定区| 嘉黎县| 安吉县| 新田县| 麻阳| 双鸭山市| 静海县| 育儿| 赣榆县| 安新县| 抚松县| 沂南县| 颍上县| 长岛县| 都江堰市| 彭水| 工布江达县| 肇东市| 临颍县| 菏泽市| 项城市| 阿图什市| 东丰县| 南川市| 东兴市| 金溪县| 牙克石市| 突泉县| 玉门市| 沁阳市| 天长市|