Reputation: 1499
One of our refs has been moved to a commit where it shouldn't be, presumably because someone did a merge in the wrong direction or something like that.
To sort this out (see what actually happened) it would be a great help to see a reflog for that ref, but from the devops cloud repo itself, as opposed to showing it for any specific developer's local repo.
Is there any way I can get a reflog from the Azure devops cloud repo?
I understand that there's no git command that can be executed on a developer machine that can get it for the remote/cloud repo. I also found that Azure devops offers a git api, but for refs all i can find is calls to list refs, modify/create/delete refs, and lock/unlock refs.
Upvotes: 0
Views: 826
Reputation: 19391
How about the built-in History view in Azure devops repo? We can view all merges in it.
Update:
You can add a powershell task to a pipeline, run git checkout master
and git reflog show --all
commands to get reflog.
Upvotes: 1