This questions is similar to: How do I see the commit differences between branches in git?
but I would like to see the diff for each commit separately, allowing me to find problems in a commit and modifying the commit with rebase -i before uploading to github.
Do a git log
to see the list of commits. Then get the SHA-1
of the commit you want to see and do a git show <SHA-1 of commit>
try git log -u
... checkout git help log
-p, -u, --patch
Generate patch (see section on generating patches).
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.