LAB 22 OF 31

Git: share your work and bring in the work of others

Pick the right Git command to share a branch, look at new work and fix a refused push.

The diagram

Tom has a new branch with two commits in a Daily List test project. He must share it with the team and bring in what Mei added. Help him pick the commands.

  1. Which command saves the address of the shared copy under the short name origin?
  2. Which command sends the new branch for the first time and links it to its twin on the remote?
  3. Next morning Tom wants to see what Mei added without changing his files. Which command?
  4. His push is refused because someone pushed first. What is the best next step?

0 of 4 steps chosen.

SYNTHETIC / TRAINING ONLY. The Daily List app and the people in it are made up, and every number is a teaching figure.

What this shows

A remote is the shared copy. You push to share, fetch to look, pull to take in, and you never force a push to a shared branch.

Read the lessons

NEXT LAB: JIRA: WRITE THE SEARCH →