Handling old unsigned commits #70583
-
Hey there 👋, We have some repositories where we have established a branch protection rule that requires commits to be signed. This is good, and we like it. However, when we need to create a new release branch (which is under the previous protection rule), we are getting an error since some of the old commits, pushed before this rule protection, were not signed. Usually someone with admin permissions is able to bypass this situation, but we would like to know if there is, out there, a recommended (not ugly), way to handle this situation. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey this is what i could think of,
Which option is best for you will depend on your specific needs and requirements. If you only need to create a new release branch occasionally, then disabling the branch protection rule temporarily may be the simplest option. If you need to create new release branches frequently, then using a tool like Git-Rebase or a third-party tool to generate signed commits may be a better option. |
Beta Was this translation helpful? Give feedback.
-
Thank you surya-mu 👏🏻 Currently we are sticking to option One, maybe we should give a chance to one of the others 🤔 |
Beta Was this translation helpful? Give feedback.
Glad to help!
You can even refer to few GitHub docs related to this:
Signing Commits
Checking Signed Commits Status