简体   繁体   English

从特定提交到现在创建拉取请求

[英]Create a pull request from specific commit until now

I have used git for a while to push and pull commits and branches, but I'm new to pull requests.我已经使用 git 一段时间来推送和拉取提交和分支,但我是拉取请求的新手。 I need to create a pull request from our development branch.我需要从我们的开发分支创建一个拉取请求。 This pull request needs to contain all commits from a certain point in time up until now.这个拉取请求需要包含从某个时间点到现在的所有提交。 This pull request is for code reviewing purposes.此拉取请求用于代码审查目的。 I don't know how to go about this.我不知道如何 go 关于这个。 Any suggestions?有什么建议么? Thanks in advance.提前致谢。

For anyone wondering how I did this.对于任何想知道我是如何做到这一点的人。 I created a branch that holds all commits up to the certain point in time (commit id), using:我创建了一个分支,该分支将所有提交保存到某个时间点(提交 id),使用:

git branch review1 0b0shcommitid

Then I pushed this branch.然后我推了这个分支。 Then I was able to create a pull request from the development branch into the new review1 branch, that holds all commits from the given commit until now.然后,我能够从开发分支创建一个拉取请求到新的 review1 分支,该分支包含从给定提交到现在的所有提交。

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

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