How to check changes before pulling from remote git repository
Check changes before pulling from remote git repository steps below: fetch the changes from the remote
1 |
git fetch origin |
show commit logs of changes
1 |
git log master..origin/master |
show diffs of changes
1 |
git diff master..origin/master |
apply the changes by merge..
1 |
git 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 […]