別ブランチにいる時、特定のブランチをgit fetchしたい
$ git fetch origin develop:develop
gitで、別ブランチで作業している間に、developに次々にマージされていき、ローカル側のdevelopが古くなっていった時に、リベースしたいなぁと思って、実行する。
SourceTreeを使っているけど、
いちいち、作業ツリーを一旦コミットして、developに切り替え、pullして、元のブランチに戻り、リベースとかめんどくさい。
pyenvとHomebrewの互換性の問題(?)を消した
brew doctor
したら、*-config
というスクリプトが、パスに通っているとダメと怒られる。
この場合は、pyenvのスクリプトが、NGらしい。
$ brew doctor Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking. Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts: /Users/ryu/.pyenv/shims/python-config /Users/ryu/.pyenv/shims/python2-config /Users/ryu/.pyenv/shims/python2.7-config /Users/ryu/.pyenv/shims/python3-config /Users/ryu/.pyenv/shims/python3.4-config /Users/ryu/.pyenv/shims/python3.4m-config
そこで、こちらを参考に、
以下を.zshrcに追加したら、消えた。
alias brew="env PATH=${PATH/${HOME}\/\.pyenv\/shims:/} brew"