Skip to Content
Git in Practice
book

Git in Practice

by Mike McQuaid
September 2014
Intermediate to advanced
272 pages
8h 27m
English
Manning Publications
Content preview from Git in Practice

Chapter 8. Vendoring dependencies as submodules

This chapter covers

  • When submodules are useful
  • Adding a submodule to a repository
  • Viewing the status of the submodules in a repository
  • Updating and initializing all submodules in a repository
  • Running a command in every submodule in a repository

In this chapter, you’ll learn how to maintain dependencies on other Git-based software projects within your own using Git submodules.

8.1. When are submodules useful?

Almost all software projects use other software projects as libraries or tools. For example, say you’re using Git and writing a desktop application in C++, and you want to communicate with a server that provides a JSON API. Rather than writing the JSON-handling code yourself, you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Git for Teams

Git for Teams

Emma Jane Hogbin Westby
Git Pocket Guide

Git Pocket Guide

Richard E. Silverman
Git: Mastering Version Control

Git: Mastering Version Control

Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski

Publisher Resources

ISBN: 9781617291975Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link