When you change a reference, which is what you do when you commit to a branch or reset it to a different commit, you can access prior values of that reference using the <refname>@{<n>}
format.
In your case, you should be able to see git log develop@{1}
to see the log from the last tip of the develop branch.
The same is true for origin/develop@{1}
, but "prior values" here won't necessarily include all changes, e.g. if a branch was committed to by someone else multiple times between your own git fetch
commands.
In general, you can use git reflog
to see changes to references, which will hopefully have a line like this near the top:
1234567 (HEAD -> develop) HEAD@{0}: reset: moving to 1234567abcde
Prior to that will be previous values of references of any branches you've checked out or committed to. You can use that to decide what to do next.
git log develop
andgit log origin/develop
are going to be identical.git log develop@{1}
is probably where you should start. See <refname>@{<n>} in the git documentation.