I would like to inspect any code changes after doing a git pull. Currently it\'s just showing me which files changes. How can I see what code changed?
Because git pull is just a shortcut for git fetch and git merge, you can run git fetch to fetch the branches from the origin and then show the differences before merging. Like this:
git fetch # Load changes from remote server
git diff master origin/master # Show differences
git merge origin/master # Merge remote changes with local changes
If you run on a different branch than master, you should of course change the branch names in the commands above.