Using submodules and subrepositories
Feb 1, 2012Steve Streeting

Summary
This post introduces the concept and implementation of Git submodules and Mercurial subrepositories within SourceTree 1.3. It details how to add submodules by specifying a source URL and path, and how these appear in the SourceTree sidebar. The post explains how to commit these additions to the parent repository. It also covers typical submodule tasks: changing the tracked commit by updating the submodule and committing the change in the parent repository, committing/pushing changes to submodules alongside the parent repository (with specific handling for Git and Mercurial), and changing the source URL of a submodule. The post highlights the benefits of this feature for managing project dependencies.