FunctionRacerProblemsRace

Get the New Work

MediumGita shell script

A teammate has pushed new commits to origin, the copy of the repository that the team shares. Your main has nothing new of its own. Bring it up to date with origin.

Example 1

starts as
* b527f18 (HEAD -> main, origin/main) first commit
nothing to commit
on origin:
  92ce64c more of a
  44553c0 add b
  b527f18 first commit
ends as
on branch: main
commits, newest first:
  more of a
  add b
  first commit
staged: nothing
changed, not staged: nothing
untracked: nothing

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Git problems