Git reports the following status in 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 happened because I created NEW.txtand then the command:
git add NEW.txt
and then edited the file. Does this mean that the execution git commitwill lead to the last changes I made to the file, or should I be particularly careful?
source
share