I am confused on how to comply with branch protection rules in GitHub that were recently established.
The relevant rules are:
- Require signed commits.
- Require a pull request before merging.
Say qas
branch has those rules and I am working in dev
.
I found out how to do a rebase interactive in order to verify the previous commits; and I've done that in dev
branch.
However when I go to Github and do a pull request from dev
to qas
, it will still reject the commits because they aren't verified.
I do understand that it is not recommended to rebase branches that have already been published.
But I'm willing to bypass this recommendation for the purpose of verifying the commits.
Yet I am stuck when doing a pull request to qas
because it says the commits aren't verified even though I can see they are verified in dev
branch.
Does anyone know how I can go about this?
Thank you.