When i do some work in working directory, i can use git diff
to see what changes I have made.
Now i just ran git add
for the files newly modified and created but not yet git commit
, git diff
doesn't show any thing. Is it still possible to see what changes have been made which were just git add
'ed?
Thanks.
Use git diff --staged
to look at the diff for staged files. git diff
only looks at unstaged files by default.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.