0

I would like to see all the files which I'm going to update in my local repo before I do 'git pull'. Is there any way?

Ocean
  • 1
  • I assume that you mean "in my local git workspace", i.e. the files you are working with? rather than your local repo . . . – chad Oct 24 '13 at 22:30

1 Answers1

1

Do a fetch instead of a pull:

git fetch upstream

This will download the changes without putting them into your working directory.

To compare them, do:

git diff HEAD upstream/branchname

Then you can merge them with:

git merge upstream/branchname
Thomas Kelley
  • 10,187
  • 1
  • 36
  • 43