简体   繁体   English

创建特定提交的请求请求

[英]Create pull request for specific commit

I want to push a specific commit to master and I am using cherry-pick for this. 我想将特定提交推送给master,为此我正在使用Cherry-pick。

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

But last command throws error that 但是最后一条命令会抛出错误

remote: Branch refs/heads/master can only be modified through pull requests. remote:只能通过拉取请求修改分支引用/头/主节点。 remote: Check your branch permissions configuration with the project administrator. 远程:与项目管理员一起检查分支权限配置。

Is there any way to create pull request for a specific commit? 有什么方法可以为特定提交创建请求请求吗?

I can do this using GUI/eclipse also if there is a way. 如果可以的话,我也可以使用GUI / eclipse来做到这一点。

In this case, the master branch is configured to only be modified through pull requests, in other words, direct pushes aren't accepted. 在这种情况下,将master分支配置为仅通过请求请求进行修改,也就是说,不接受直接推送。 You need to push to a "temporary" branch (something like a "development" or "feature" branch) and then ask for a pull request using the "Create pull request" button at the Bitbucket repository's page. 您需要推送到“临时”分支(类似于“开发”或“功能”分支),然后使用Bitbucket存储库页面上的“创建请求”按钮来请求请求。 This temporary branch can be at the same repository or in a forked repository. 该临时分支可以在同一存储库中,也可以在分支存储库中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM