Check changes before pulling from remote git repository steps below:
- fetch the changes from the remote
Shell1git fetch origin
- show commit logs of changes
Shell1git log master..origin/master
- show diffs of changes
Shell1git diff master..origin/master
- apply the changes by merge..
Shell1git merge origin/master
Difference between Git Pull vs Git Fetch:
Git pull will download and merge latest changes from the remote repository automatically. You don’t have chance to review the changes and conflicts.