Recover commits deleted by force push #22221
-
Hi, I accidentally force pushed to my repo and caused two commits to become dangling. Thankfully, they are referenced by a GitHub PR and a GitHub issue so they are still viewable via the UI (see here PatrickF1/fzf.fish@main...84a0cd7). I want to fix this but cannot fix it locally because I never fetched the two commits in question. I also tried fixing it from GitHub but the compare UI (see the link I posted above) does not let me create a PR or branch from it. What do I do to bring back these two commits? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I asked GitHub support privately and they helped me resolve it! Here’s their reply
|
Beta Was this translation helpful? Give feedback.
I asked GitHub support privately and they helped me resolve it! Here’s their reply