有没有办法通过命令行压缩和 merge Pull Request 与我的 GPG 签名?在 UI 上 merge pull 请求不支持 GPG 签名。我尝试通过 git merge --squash
进行 merge ,但它不会自动关闭 Pull Request。
最佳答案
“Squash and merge your pull request commits ”是一个服务器端选项,实际上不支持 gpg 签名。
这意味着您需要:
- fetch the pull request in a local clone
git merge --squash
,与--gpg-sign
option- 推送新的 merge 提交
- 使用 GitHub API update the Pull Request state或 manually close the pull request .
这是一个手动且有些复杂的过程,但它会起作用。
关于git - 如何通过命令行压缩和 merge Pull Request 与 GPG 签名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49879963/