Skip to content

Instantly share code, notes, and snippets.

@jtdp
Last active July 16, 2024 14:40
Show Gist options
  • Save jtdp/5443297 to your computer and use it in GitHub Desktop.
Save jtdp/5443297 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
@firstChairCoder
Copy link

Thanks for sharing @reharik @jtdp !! 👐

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment