12 Sharing Changes

Remember that Git is different from most traditional version control systems; committing a change and sharing that change are two distinct tasks. Committing changes is covered in detail in Task 7, ​Committing Changes​; this task gives you a quick cheat sheet for the various tasks you need to perform to collaborate with others. For more detail on these steps, see Part IV, Working with a Team.

Once you have a local clone (see Task 4, ​Creating a Local Copy of an Existing Repository​) or have set up a remote after initializing your repository (see Task 19, ​Adding and Removing Remotes​), you need to fetch changes from the remote repository to keep your local branches (we’ll cover what branches are in just ...

Get Pragmatic Guide to 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.