Day 3 of 10 25 mingit loggit diffgit show
Read the story of your project. Navigate git log, inspect any commit with git show, compare versions with git diff, and find out who changed a line and why.
By the end of today you can
- Read history with git log and its most useful options
- Inspect a single commit with git show
- Compare the working directory, staging area and commits with git diff
- Use git blame to find when and why a line changed
- Refer to commits by hash, HEAD~n and branch names
What's inside
- 5 sections
- 3 diagrams and mind maps
- 4-question quiz
- 1git log: the project's story
- 2Naming commits
- 3git show: inspect one commit
- 4git diff: compare any two versions
- 5git blame: who changed this line?
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free