gpt4 book ai didi

git - 为特定提交创建 pull 请求

转载 作者:行者123 更新时间:2023-12-02 17:18:25 24 4
gpt4 key购买 nike

我想将一个特定的提交推送到 master,为此我正在使用 cherry-pick。

- git checkout master
- git cherry-pick 35ea91db5ce
- git push origin master

但是最后一个命令抛出错误

remote: Branch refs/heads/master can only be modified through pull requests. remote: Check your branch permissions configuration with the project administrator.

有什么方法可以为特定提交创建 pull 请求吗?

如果有办法,我也可以使用 GUI/eclipse 来做到这一点。

最佳答案

在这种情况下,master 分支被配置为只能通过 pull 请求进行修改,换句话说,不接受直接推送。您需要推送到“临时”分支(类似于“开发”或“功能”分支),然后使用 Bitbucket 存储库页面上的“创建 pull 请求”按钮请求 pull 请求。此临时分支可以位于同一存储库或 fork 存储库中。

关于git - 为特定提交创建 pull 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44882305/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com