1
votes

I was about to merge a PR to master but got blocked by error message

The base branch requires all commits to be signed.

Does this mean there are unsigned commits on mater branch? How do I resolve this error?

1
This probably means their are unsigned commits in your PR, not the master branchMureinik
Did you in fact sign your commits?matt

1 Answers

0
votes

It depends on your situation. If the branch hasn't been shared with others, you might be able to use rebase to solve the problem. A rebase will allow you to amend the commit messages as you wish, including adding a signature. The down-side of this is that the commits all get a new id, so if other people have done further work based on them, it will get messy and create extra work. If the branch hasn't been merged into other branches, and you'd be able to delete the branch from the server without problems, you should be OK.

Check the documentation here https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History It's pretty clear, although you will want to read it all before beginning.