-1

Like how we use -n switch in 'p4 sync -n' in Perforce to just show the files to sync and not actually sync, Is there a switch that can be passed in 'git' command as well.

Vinod R M
  • 45
  • 8
  • Possible duplicate of [git: list remote changes](https://stackoverflow.com/questions/24182162/git-list-remote-changes) – phd Jan 17 '18 at 16:47

1 Answers1

1

You can do:

git fetch origin
git diff master origin/master --names-only

This will fetch the changes from your upstream but won't merge them to your local branch, and then you can check the differences between those two.

Esteban Garcia
  • 2,171
  • 16
  • 24