Running $git diff
on the local PC does not return anything.
git status
returns the properly modified file.
I'm sure there's something wrong, but I can't guess.
If you have any questions, please take care of me.
git
Maybe it's because I haven't committed yet.Even before committing
git status-v-v
I think I was able to do something similar to diff in
I think it's in the staging area.
You can use git diff if you just changed it and haven't posted it to the staging area yet.
If you are posting to a staging area and want to see the editing location, use git diff --cached
I think I can do it.
Wouldn't it be possible to check the difference now?
We recommend that you review the git status
results again.
Also, if you present the results here without any problems, I think you will get a more accurate answer.
First of all, based on the current information, we can think of the following possibilities:
git status
should display as Untracked files
(*).git status
should display Changes to be committed
( )).git diff
is a command that looks at the difference between the working tree and the index, and when added to the index, there is no difference, so nothing is displayed.git diff --cached
command to see this difference (the difference between index and HEAD).*The message may vary slightly depending on the version.
© 2024 OneMinuteCode. All rights reserved.