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.
Asked
Active
Viewed 24 times
1 Answers
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