I've searched around and found no answer to this question.
I have an app running on Heroku. From my local machine I typically implement and just:
git add .
git commit -m "whatever change, I know I can add and commit at the same time..."
git push <the-heroku-repo>
Then it goes up and the master branch in the Heroku app is updated. So far so good.
Now. I want to have another machine that will automatically make a pull from the Heroku repo and update itself.
So i do that with:
git clone <the-heroku-repo>
That gets me the app and I can see the git config with this:
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=git@heroku.com:theapp.git
branch.master.remote=origin
branch.master.merge=refs/heads/master
To update this new repo I can do just a pull:
git pull origin
Or I could fetch and merge:
git fetch origin
git merge origin/master
MY QUESTION
Between the above fetch and merge I can check what are the changes by doing:
git log -p master..origin/master
Is there a way to find the differences between the local master branch and the latest version in the remote Heroku repo without fetching before? Just compare the local and remote and see the changes. I just can't find the proper way.
Thanks.