What does "Changed but not updated mean"? These files are in git, they've been modified but when I run "git status," these changes appear under "Changed but not updated" instead of "Changes to be commited."
# On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: breakouts/views.py # # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: templates/registration/login.html # modified: templates/registration/registration.html # Untracked files: # (use "git add <file>..." to include in what will be committed) # # context_processors.py # static/#css.css# Since they've already been added why aren't they "Changes to committed"?
git add, is that you prepare a commit, is that you put modifications into the staging area (index), and then once you've staged what you want to commit, you commit it. This lets you be very careful about what goes into any given commit.