Chapter 2. Remote Git

This chapter covers

  • Downloading a remote repository
  • Sending changes to and receiving changes from a remote repository
  • Creating and receiving branches
  • Merging commits from one branch to another

As you learned in technique 1, it’s possible to work entirely with Git as a local version control system and never share changes with others. Usually, however, if you’re using a version control system, you’ll want to share changes: from simply sending files to a remote server for backup to collaborating as part of a large development team. Team collaboration also requires knowledge of how to create and interact with branches for working on different features in parallel. Let’s start by adding a remote repository.

Technique ...

Get Git in Practice 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.