Question

i would like to know which files would be updated (and hopefully the changes that would occur) if i'd do a 'git pull'...

is

git stash 
git fetch
git diff origin/master
git stash apply 

the answer ?

Was it helpful?

Solution

See here. To quote:

you can do a 'git fetch origin', then a 'git log master..origin/master', and it'll tell you what changes will be merged if you do a 'git merge origin/master'.

OTHER TIPS

Since git pull is git fetch plus git merge, do the fetch first, and then diff the remote branch against your current branch (git diff origin/whatever..).

is

git stash 
git fetch
git diff origin/master
git stash apply 

the answer ?

Yes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top