git show current commits code example
Example 1: get unpushed commits
git log origin/master..HEAD
Example 2: git how to see changes made by a commit
git show <commit sha1> # Notice that the default option is HEAD.
git log origin/master..HEAD
git show <commit sha1> # Notice that the default option is HEAD.