Does git submodule branch switch along with main project's branch?
<p>Recently I got to know git submodules. They appear to be self-sufficient projects with their own git structure and branches.</p>

<p>When I switch main project's branch, does this also switch submodule's branch? How does git handle this situation?</p>