LoginSignup
1
1

More than 3 years have passed since last update.

MacでGit導入(Homebrew利用)

Last updated at Posted at 2020-01-11

icon_git.png

概要

エンジニアでMac買ったらまずやることはGit導入ですね。
Gitないと何もできません。

環境

端末:Mac book Pro(13-inch,2019)
OS:macOS Catalina 10.15.2

前提

Homebrewの利用を前提とした導入方法になります。
※HomebrewとはmacOSでよく使われるパッケージマネージャです。ターミナルからパッケージなどをインストール際に使用するのでこのタイミングで導入しちゃいましょう!

手順

Xcodeをインストール

App storeからXcodeをインストール
https://apps.apple.com/jp/app/xcode/id497799835?ls=1&mt=12

Homebrewをインストール

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

以下の結果が取得できればインストール成功

$ brew doctor
  Your system is ready to brew.

Gitのインストール

$ brew install git

以下の結果が取得できればインストール成功

$ git --version
  git version 2.24.1
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1