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 ?
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 ?
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'.
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 applythe answer ?
Yes.