As a result of developing in the same branch across two different devices with lots of pushes and pulls going between each as well as merges from master (where lots of other commits come in). I'm in the following state with the Git repo on my second device:
% git status
On branch user/selbie/amazingfeature
Your branch is ahead of 'origin/user/selbie/amazingfeature' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
The problem is I don't know what those two commits could possibly be. I had recently merged the branch with master on the other repo and pulled those changes down to the second device. I would have expected the repos to be in sync at this point.
Searching around Stack Overflow, most answers like this one suggest I should just type this:
% git diff origin/user/selbie/amazingfeature user/selbie/amazingfeature
But it doesn't print any results. How can I get the diffs or commits between the local and remote before doing a git push
blindly?