5 When working locally, files are in one of three states: committed, modified, or staged. Committed files are stored safely in your local .git database. Modified files are files in your working directory you have changed but not yet staged or committed. Staged files are modified files that have been marked to be added to your next commit.