OSX で

git checkout する時に branch な名前のtab 補完がキかなくて困っていたのですが、見つけました。曰く以下とのことです。

  1. Download this file to your home directory and name it .git-completion.bash.
  2. Add this to your .bash_profile: source ~/.git-completion.bash

Five Useful Git Tips より引用
これで長い branch な名前を遠慮なく付けることができます。
ちなみに Ubuntu ではデフォで tab 補完が効くのですが、この違いはどこから来てるのか。