Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Looking Back: Viewing Your Project History | Getting Started with Version Control
Git and GitHub for Absolute Dummies

bookLooking Back: Viewing Your Project History

When you want to remember what you did on your project, or see how it has changed over time, you can use Git to look back at all your saved snapshots. This is where the git log command comes in. Think of git log as a way to scroll through an album of your project's history. Each "photo" in this album is a commit—a saved change—with a message, the date, and a unique code that helps you find it later.

git log

To read the git log, start at the top. The long string after "commit" is the commit ID—a unique code for this snapshot. The Author line tells you who made the change. The Date line shows when it was saved. The message at the bottom explains what was changed in that commit. By reading these details, you can follow the story of your project and understand how it has grown, step by step.

git show 3f1e2b4c8a7d9f0e6a1b4f2a3e4c5b6d7e8f9a0b

1. What does 'git log' show you?

2. Why might you want to look at your commit messages?

question mark

What does 'git log' show you?

Select the correct answer

question mark

Why might you want to look at your commit messages?

Select the correct answer

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

Suggested prompts:

Can you explain what information is shown by the `git log` command?

How do I use `git show` to see more details about a specific commit?

What do the different parts of a commit entry mean in the log?

bookLooking Back: Viewing Your Project History

Scorri per mostrare il menu

When you want to remember what you did on your project, or see how it has changed over time, you can use Git to look back at all your saved snapshots. This is where the git log command comes in. Think of git log as a way to scroll through an album of your project's history. Each "photo" in this album is a commit—a saved change—with a message, the date, and a unique code that helps you find it later.

git log

To read the git log, start at the top. The long string after "commit" is the commit ID—a unique code for this snapshot. The Author line tells you who made the change. The Date line shows when it was saved. The message at the bottom explains what was changed in that commit. By reading these details, you can follow the story of your project and understand how it has grown, step by step.

git show 3f1e2b4c8a7d9f0e6a1b4f2a3e4c5b6d7e8f9a0b

1. What does 'git log' show you?

2. Why might you want to look at your commit messages?

question mark

What does 'git log' show you?

Select the correct answer

question mark

Why might you want to look at your commit messages?

Select the correct answer

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 3
some-alt