Search⌘ K
AI Features

The Different Stages of Tracking Changes

Explore the different stages a file goes through in Git version control, including untracked, changed but unstaged, staged, and committed. Understand how to use git status and git log to monitor these stages, and learn why maintaining a clean working directory is important for efficient version control management.

Under Git version control, a file can be in one of the following stages:

  • Untracked files
  • Tracked files with unstaged changes
  • Tracked files with staged changes
  • Committed changes

We can see the stages of the changes when we run git status ...