LESSON 11

Collaboration

Learning objective: Work with others on a shared repository.

Understand

Git and GitHub make teamwork smooth.

Collaborators clone a repo, create branches, and open pull requests. Pulling regularly keeps everyone in sync, and clear commit messages plus small PRs keep the project healthy. Communication matters as much as commands.

Analogy: Collaborating with Git is like a shared document where everyone edits their own copy first, then merges in.

See It in Action

Getting a copy of a shared repo:

git clone https://github.com/team/repo.git
git pull
How it works: clone downloads the whole repo, and pull keeps your copy up to date with the team's latest work.

Try It Yourself

  1. Clone a public repository.
  2. Create a branch for a change.
  3. Pull to get the latest updates.

Quick Quiz

What keeps collaborators in sync?

Challenge

Clone a repo, make a branch, and describe how you would share your change.

Success condition: You can clone, branch, and explain the collaboration flow.