Getting ready

In this example, we'll clone and use a new repository. The repository is just an example repository for Git commands and only contains some example commits:

$ git clone https://github.com/PacktPublishing/Git-Version-Control-Cookbook-Second-Edition_offline-sharing.git$ cd Git-Version-Control-Cookbook-Second-Edition_offline-sharing$ git checkout master

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.