1.
Hint.
Check your issue again to see which file you should have edited.
git stage <file>
command adds the indicated file to the stage, preparing it to become a part of the next commit.git stage
command the file will be staged.git status
command.git status
command will show you all unstaged and staged files.git stage
command properly the file you changed should appear as ready to be committed.git stage
(or git add
) command the file will be staged.git status
command.git status
command will show you all unstaged and staged files.git diff
command again. What output is produced?git stage
command was done or your git stage
command did not work properly.git stage
command was done or your git stage
command did not work properly.git stage
command was done or your git stage
command did not work properly.git diff
command will only show the changes that have yet to be staged.git diff --staged
command will show you the differences between the staged changes and the most recent commit. Try this command now.git add
command that is equivalent to git stage
. So, you can add files to the stage using either git stage
or git add
. These activities will use git stage
because it seems more descriptive of what is happening. However, you are likely to see git add
used in other resources, so it is worth knowing that they are equivalent.