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,486
  • 2
  • 11
  • 19

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
  • 9,273
  • 9
  • 56
  • 75
1

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

   -p, -u, --patch
       Generate patch (see section on generating patches).
Spundun
  • 3,936
  • 2
  • 23
  • 36