Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reopen a pull request on Github

I am facing problem on how to reopen a pull request that I accidentally closed on Github. I searched for other people's question and the answers are mostly to use the reopen button, but that does not work for me. Does anyone know how to fix this issue?

like image 313
Qiyu Chen Avatar asked Mar 10 '26 10:03

Qiyu Chen


2 Answers

If you want to re-open the pull request then there is a button at bottom in git hub saying Reopen pull request . Press that button and you will get your pull request is in open state.

like image 178
Ms.KV Avatar answered Mar 12 '26 00:03

Ms.KV


The "Reopen pull request" button will be disabled if you don't have the necessary permissions or if the last commit in the branch is not the exact one that was there when the pull request was closed.

In the later case,

git co <branch>
git tag my-bookmark
git reset --hard <commit>
git push --force

will allow you to use that button.

Then use

git reset --hard my-bookmark
git tag -d my-bookmark
git push --force

to get back where you were.

like image 45
jsalvata Avatar answered Mar 12 '26 01:03

jsalvata



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!