LoginSignup
0
0

More than 5 years have passed since last update.

homebrewでgitをインストール(OS X)

Last updated at Posted at 2014-04-02

homebrewをインストール

参考サイト:
http://tools4hack.santalab.me/howto-mountainlion-install-homebrew.html

  1. Javaのインストール
  2. Xcode Command Line Toolsをインストール
  3. homebrewをインストール
    コマンドラインで以下を実行。 $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

gitをインストール

$ brew install git

※補足

ホームディレクトリに.bash_profileを作成し以下の記述をする必要があると紹介するサイト(http://www.e2esound.com/wp/2013/07/03/git-kai_how_to_install_git_with_homebrew/)
もあったが、自分の場合は無くても大丈夫そうだった。
bash
PATH=/usr/local/bin:$PATH
export PATH
if [ -f ~/.bashrc ] ; then
. ~/.bashrc
fi

0
0
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
0
0