Skip to main content
  1. Learn center
  2. Software Development
  3. Guides
  4. Git tutorial
  5. Git basics
  6. What is Git
  7. Three states of Git files
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

Three states of Git files

As you can probably guess from the Git workflow, files can be in one of three states:

  • Modified
  • Staged
  • Committed

When you modify a file, you will only see those changes in the working tree. You must then stage the changes to include them in your next commit. Once you finish staging all files, you can commit them and add a message describing what you changed. Then your changes are safely recorded in a new snapshot in the repo.

Git components
The three file states for Git are modified, staged, and committed.

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life