git show changes in commit code example
Example 1: git how to see changes made by a commit
git show <commit sha1> # Notice that the default option is HEAD.
Example 2: how to commit changes in git command
git commit -a
git show <commit sha1> # Notice that the default option is HEAD.
git commit -a