Get the submodule initially
$ git submodule add git://github.com/twitter/bootstrap.git lib
$ git submodule init
Time passes, submodule upstream is updated and you now want to update change to the submodule directory
$ cd submodule_dir
Checkout desired branch