pull changes loaded on git via cmd code example
Example 1: how to pull and overwrite local changes git
git fetch --all
git reset --hard origin/master
Example 2: check changes after git pull
The very first line in the output of a pull looks like this:
$ git pull
Updating 37b431a..b2615b4
So to get the diff between before and after pull request, use -->
$ git diff 37b431a..b2615b4