0

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.

Community
  • 1
  • 1
metrix
  • 1,387
  • 1
  • 9
  • 18

2 Answers2

1

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>

gravetii
  • 8,485
  • 8
  • 49
  • 69
1

try git log -u ... checkout git help log

   -p, -u, --patch
       Generate patch (see section on generating patches).
Spundun
  • 3,878
  • 2
  • 22
  • 34