Automatically switches branch when local override for git repository is given

With a big project that has quite a few git dependencies, sometimes it becomes very annoying to switch the branch manually.

Bundler will try to switch to the branch specified in Gemfile if it exists.

Enable this feature by
bundle config auto_switch_local_branch true