简体   繁体   中英

Can i see the changes made in the files just `git add`'ed?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM