Git Dependency Management with Submodules and Subtrees

Git Dependency Management with Submodules and Subtrees

42mIntermediate2023-07-10

Authors

Manaswini Das

Manaswini Das

Course details

Does Git come to your mind when you hear the phrase “version control”? Do you know what Git is used for and how you can use it to manage multiple repositories from a single repository? In this course, software engineer Manaswini Das helps you discover and learn to use Git subtrees and submodules, the tools that enable you to manage multiple repositories from a single repository. Manaswini explains how Git submodules and subtrees can help you with in-house dependency management. She also reviews the caveats, differences, and applications—for example, single-sourcing documentation and publishing documentation on various platforms. Plus, Manaswini highlights other alternatives like git-repo, git-subrepo, and gitslave that can help you achieve dependency management.

Skills covered

Visual Studio CodeGitAgile Software DevelopmentVersion ControlGitHubDevOps ToolsDevOpsSoftware Development ToolsOpen SourceMicrosoftSoftware DevelopmentOne-Off

Concepts

Introduction

  • Git submodules and subtrees
  • What you should know

Dependency Management

  • Why do you do dependency management
  • Dependency management with Git

Learning Git Submodules

  • Introduction to Git submodules
  • Git submodules in action on GitHub
  • Git submodules in action in your terminal and VSCode
  • More commands with Git submodules
  • Challenge - Initialize and update submodules
  • Solution - Initialize and update submodules

Learning Git Subtrees

  • Introduction to Git subtrees
  • Git subtrees in action on GitHub
  • Installing Git subtrees
  • Git subtrees in action in your terminal and VSCode
  • More commands with Git subtrees
  • Challenge - Squash with add, split subtrees
  • Solution - Squash with add, split subtrees

Caveats, Differences, and Use Cases

  • Caveats for subtrees and submodules
  • Differences between subtrees and submodules
  • Applications and use cases

Conclusion

  • Alternatives and resources for further reading
40,000 Toman