読者です 読者をやめる 読者になる 読者になる

Homebrew で Git インストール

Homebrew で Git インストール

brew install git

~ $ brew install git
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
apm-bash-completion               fabric-completion                 rails-completion
aptly-completion                  gem-completion                    rake-completion
boom-completion                   grunt-completion                  ruby-completion
boot2docker-completion            homesick-completion               rustc-completion
brew-cask-completion              kitchen-completion                scipy
bundler-completion                launchctl-completion              sonar-completion
cap-completion                    maven-completion                  spring-completion
cargo-completion                  mix-completion                    stormssh-completion
django-completion                 numpy                             t-completion
docker-completion                 open-completion                   tmuxinator-completion
docker-compose-completion         packer-completion                 vagrant-completion
docker-machine-completion         pip-completion                    wpcli-completion
==> Updated Formulae
awscli                            nats-streaming-server             tor
harfbuzz                          qt5

==> Downloading https://homebrew.bintray.com/bottles/git-2.11.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring git-2.11.0.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions

zsh functions have been installed to:
  /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git
==> Summary
🍺  /usr/local/Cellar/git/2.11.0: 1,452 files, 32.4M

インストールしたままだと、インストール前のGitとバージョンは変わらず

~ $ git --version
git version 2.10.1 (Apple Git-78)

bash_profile を再度読み込むと最新バージョンが適用される

source .bash_profile
~ $ git --version
git version 2.11.0