別ブランチにいる時、特定のブランチを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

そこで、こちらを参考に、

qiita.com

以下を.zshrcに追加したら、消えた。

alias brew="env PATH=${PATH/${HOME}\/\.pyenv\/shims:/} brew"

gomobile: unsupported, direct named type...

あぁ、構造体なんて使うんじゃなかった。

gomobileで、iOSAndroid向けのライブラリを作成しようとして、
構造体を返すメソッドを公開しようとしたら、こんなエラーがでて、悲しくなった。

早く対応しておくれ。

type Session struct {
	JsessionId string
	SessionId string
}

func GetSession(userId string, password string) (session Session, err error) {

	...

	return Session{JsessionId: "1234567890"}, nil

}