$
Impara Manuale Linux
it
XP:0
Missione 146Git Committer
+240 XP

Version Control Basics (git status, diff, log)

Avvia il terminale interattivo per questa missione→Nessuna installazione richiesta • Funziona nel browser

Concetto e panoramica

Modern Linux servers and cloud infrastructure rely on Git for version control, continuous integration, and infrastructure-as-code deployments. Let's master the core introspection commands.

- git status: Checks working tree and staging area state, revealing modified, untracked, and staged files.
- git diff: Shows line-by-line differences between modified files and the last commit.
- git log: Displays commit hashes, author metadata, and change messages.

Let's inspect code changes in the repository. Check working tree state with git status, inspect file modifications with git diff, and review repository history using git log.

Riferimento sintassi dei comandi

Command / SyntaxDescription
git statusDisplay repository and staging area status
git diffDisplay line-by-line diffs of modified files
git logDisplay commit history log

Obiettivi di verifica

  • ○
    Run git status
  • ○
    Run git diff
  • ○
    Run git log

Pronto a completare la Missione 146?