Skip to content

Instantly share code, notes, and snippets.

@TIIGRUS
Forked from jtdp/gist:5443297
Created July 3, 2021 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TIIGRUS/8a7a95d39d6bdd6ec857e301fd9cb03d to your computer and use it in GitHub Desktop.
Save TIIGRUS/8a7a95d39d6bdd6ec857e301fd9cb03d to your computer and use it in GitHub Desktop.
See changes before pulling from remote git repository
# fetch the changes from the remote
git fetch origin
# show commit logs of changes
git log master..origin/master
# show diffs of changes
git diff master..origin/master
# apply the changes by merge..
git merge origin/master
# .. or just pull the changes
git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment