Sometimes we want to review the differences between the remote repository and the local one.
Fetch
First we have to fetch the code:
git fetch
Show diff
Using diff it is possible to compare the local master with the remote master(origin):
git diff
Merge
Finally we can merge the changes
git merge