Skip to content
  • Git Lifecycle & Status · Git & GitHub

Git Lifecycle & Status

LearnViaNotes @learnvianotes· 1 min read

Understanding the four states of files and how Git tracks modifications.

As you edit, add, or delete files in your local project workspace, Git classifies every file into one of four distinct states:

Git State Flow Diagram

Untracked File add → Staged (Ready) commit → Unmodified

Unmodified edit file → Modified add → Staged (Ready)

Checking Status

To inspect the status of your working directory relative to the current Git branch, use:

Shell
git status

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report