Skip to content

Instantly share code, notes, and snippets.

@myamamic
Created July 2, 2013 08:17
Show Gist options
  • Select an option

  • Save myamamic/5907588 to your computer and use it in GitHub Desktop.

Select an option

Save myamamic/5907588 to your computer and use it in GitHub Desktop.
[mac] gitのインストール
* 参考
** Homebrewのインストール
https://gist.github.com/myamamic/5907519
** Homebrewでgitインストール
http://d.hatena.ne.jp/ttaka_tmp/20110412/1302585640
http://rock-and-hack.blogspot.jp/2012/12/macgithomebrew.html
* 手順
1."brew install git"を実行
/usr/local/Cellar/git/1.8.3.2: 1325 files, 28M, built in 34 seconds
→インストール先が表示される。
2.このままではデフォルトのgitが使われるので、参照パスの優先順位を変更し、
インストールしたgitに変更する
$ sudo nano /etc/paths
→/usr/local/bin を先頭に持ってくる
3.gitのバージョン確認
$ git --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment