Hi, On Tue, Aug 19, 2025 at 04:42:33PM -0700, Andrew Pinski wrote: > Hi all, > I accidentally messed up the trunk branch on gcc-test repo on the forge. > I clicked merge+fastforward button on a pull request thinking it was just a > rebase for the pull request. > Since it is just the test repo, I am not too worried at this stage. > Is there a way to "revert" that pull request?
Yes, you can git reset --hard HEAD^^ and then git push --force. (Which I just did.) We really should setup protected branches, so people cannot do that :) https://forge.sourceware.org/gcc/gcc-TEST/settings/branches (You probably need to be an "Owner" to create protected branches) Cheers, Mark