On one Github repository, I maintain a somewhat extensive list of tips that I don't want to go looking up many time. I have local clone of that Wiki.
By mistake, I made a git push --force origin branch
before updating the local repository (e.g. with git fetch
).
I have read the specific answer on How to recover from a git push -force?. And ran
curl -u <username> https://api.github.com/repos/<user>/<repo>/events
However, since it concerns the wiki, AFAICT, I can only check the events on the main repository (<repo>
). Which appear marked as GollumEvent
. But they don't have a specific hash, so I cannot follow by creating a new branch/ref for it.
Since I never updated the local directory, I also cannot use the direct reflog
way.
I tried getting the events of <repo>.wiki
or <repo>.wiki.git
, but the API claims that it is unknown. I tried having a look at the commits list, but it only lists the commits to the main repo (not wiki).
Do I still have a chance to recover the last online edits?