Git reports the following status on one of my branches:
# On branch awesome # Changes to be committed: # (use "git reset HEAD ..." to unstage) # # new file: NEW.txt # # Changed but not updated: # (use "git add ..." to update what will be committed) # # modified: NEW.txt #
This came about because I created NEW.txt
then commanded:
git add NEW.txt
and later edited the file. Does this mean that doing git commit
will commit the latest changes I've made to the file, or should I take extra caution?