I'm often in this situation when I've forked an open source repository under olivierlacan/ossreponame
.
I always set my own forked repo as the origin
remote, and the canonical repository as the upstream
remote.
Regularly, I run git pull --rebase upstream origin
to update my local copy and push it back to olivierlacan/ossreponame
on GitHub if necessary.
Yet sometimes, I have made some experimental changes on the master branch within my local fork (I know, it's bad, I should be using branches, but it happens). In doubt I often check git log
for a recent commit authored by me and then I roll back these changes. But I always have a lingering feeling that I might be sneaking my stray commits by rebasing like that.
Is there a simple way to compare my git log history with the one on upstream/master
in order to be certain they're not discrepant. Please feel free to tell me if this is a terrible idea.