Chapter 13Understanding Remotes—Workflows for Changes

So far in this book, I’ve focused mostly on working with Git as an individual user in a local environment. In Chapter 12, I extended this discussion to interacting with the remote environment. In this chapter, I’ll focus on working with other users.

I’ll first explore the basic conflict-merge resolution workflow that comes into play when someone else has changed code you’ve also been working on. I’ll show you how this workflow works and explain why the process happens the way it does. Next, I’ll present a modified workflow that is widely used for contributing to other users’ projects. Finally I’ll discuss a strategy to help mitigate surprises when you pull updates, and fit that strategy into a larger workflow that is similar to what you might use with some other source control systems.

Get Professional Git 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.