Track

Investigating

3 Lessons, then a Checkpoint of 2 Challenges.

Builds on Branching & Merging.

Lessons

Follow them in order, or play any Lesson once the Track is unlocked.

  1. Searching history

    A project that's a few months old can have hundreds of commits. git log lists every one of them, newest first, and somewhere in that list is the one you're…

    3 Challenges.

    New commands:

    • git log -p
    • git log -S
    • git log --author
    • git log --
  2. Who changed this line

    You're looking at a line in a file and wondering where it came from. Who wrote it? When? Was it on purpose? git log answers questions about commits. git blame…

    3 Challenges.

    New commands:

    • git blame
  3. Finding the bad commit

    Something worked a month ago and doesn't work now. Thirty commits came in between, and any of them could be the one that broke it. Searching helps when you…

    3 Challenges.

    New commands:

    • git bisect start
    • git bisect good
    • git bisect bad
    • git bisect reset

Checkpoint

The Track ends with a Checkpoint of 2 Challenges that use only this Track's commands and those of the Tracks it builds on. Passing the Checkpoint completes the Track, even before you have played every Lesson.

Play the Investigating Checkpoint