SREとはのブログ

日々の作業メモ

gitでswitchが使えてなかった

なんのため

gitでswitchが使えてなかったのでversionup

参考サイト

allyourbase.hatenablog.com

メモ

これをやらなかったが動いている

bash_profileに追加します。

$ vim ~/.bash_profile
PATH=/usr/local/git/bin:$PATH
export PATH
$ source ~/.bash_profile

インストールメモ

[13:38:15] tm@tm-22 /Users/tm/ghq/github.com/Oisix/sre-skill-docs (1)
> brew cask list
clipy                         font-fira-code                google-chrome                 iterm2                        slack                         tuntap                        virtualbox                    visual-studio-code
docker                        gns3                          hyperswitch                   kindle                        spectacle                     vagrant                       virtualbox-extension-pack     wireshark
[13:38:22] tm@tm-22 /Users/tm/ghq/github.com/Oisix/sre-skill-docs (0)
> brew  list
ansible         fish            ghq             grc             hwloc           libmpc          minikube        openssl         perl            python          rust            tmux            xz
autoconf        gcc             glide           hping           isl             libssh2         mpfr            openssl@1.1     pexpo           python@3.8      sqlite          tree
bash-completion gdbm            gmp             httping         kubernetes-cli  libyaml         ncurses         pcre2           pkg-config      readline        starship        unar
fftw            gettext         go              hub             libevent        lua             open-mpi        peco            pyenv           ruby            telnet          vim
[13:38:26] tm@tm-22 /Users/tm/ghq/github.com/Oisix/sre-skill-docs (0)
> brew info git
git: stable 2.25.0 (bottled), HEAD
Distributed revision control system
https://git-scm.com
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/git.rb
==> Dependencies
Required: gettext ✔, pcre2 ✘
==> Options
--HEAD
        Install HEAD version
==> Caveats
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
==> Analytics
install: 120,379 (30 days), 514,994 (90 days), 1,874,805 (365 days)
install-on-request: 114,884 (30 days), 486,067 (90 days), 1,754,105 (365 days)
build-error: 0 (30 days)
[13:43:21] tm@tm-22 /Users/tm/ghq/github.com/Oisix/sre-skill-docs (0)
> brew install git
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
archiver                                                                                                                qp
==> Updated Formulae
abseil                    apibuilder-cli            artifactory               aws-cdk                   cfn-lint                  exploitdb                 hostess                   luaradio                  stress-ng

==> Installing dependencies for git: pcre2
==> Installing git dependency: pcre2
==> Downloading https://homebrew.bintray.com/bottles/pcre2-10.34.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/9b/9bc0815c6c4c584ef16e93e5ecf37aa786303d88f9321274a29b4f60876d583f?__gda__=exp=1583643349~hmac=64020c62ddd122dd20a5f5d5994dcb1f9e21c05482f2355b369b6097a4794895&response-content-disposition=
######################################################################## 100.0%
==> Pouring pcre2-10.34.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/pcre2/10.34: 230 files, 5.9MB
==> Installing git
==> Downloading https://homebrew.bintray.com/bottles/git-2.25.0_1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/54/54508f6ad675b1a3964d8576b9123d1459f6edf4f8847e229b56ec76cf49014b?__gda__=exp=1583643354~hmac=8ed7ab9be6fb7bbaa2c4c14c0bb95912e4262f28be54653e47d7937441ed3bb5&response-content-disposition=
######################################################################## 100.0%
==> Pouring git-2.25.0_1.mojave.bottle.tar.gz
==> Caveats
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions and 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.25.0_1: 1,443 files, 43.5MB
==> Caveats
==> git
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions and 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
[13:44:07] tm@tm-22 /Users/tm/ghq/github.com/Oisix/sre-skill-docs (0)
> git --version
git version 2.25.0
[13:44:14] tm@tm-22 /Users/tm/ghq/github.com/Oisix/sre-skill-docs (0)
>