How it works...

The bundle command creates a binary file with the history of the specified commit range included. When creating the bundle as a range of commits that do not include the initial commit in the repository (for example, bundleForOtherRepo..develop), it's important to make sure that the range matches the history in the repository in which the bundle is going to be used.

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.