Sometime in the past 6 weeks an issue has been introduced into the codebase. I have identified which branch introduced it (and the head/tail commits for that branch) but I would now like to start tracing through the individual commits on that branch to identify the exact cause.
My problems are that:
- The branch in question was deleted by the build-server after being merged to master
- Before merging, the commits were squashed (by the build server).
- I don't have access to the local environment where the commits were originally made and pushed from.
I can see the commit history for the now-deleted branch on our build-server but if I try to checkout one of them locally I just get the error
error: pathspec '<commit-id>' did not match any file(s) known to git
The build-server is also happy to show me the diffs for each commit which implies they are still in git somewhere (or alternatively the build-server has cached them, but that seems unlikely).
I've seen references to git reflog
but that seems only to work on the local repository history (or, more likely, I've failed to find some advanced option it offers).
Is there a way to do this? TIA.