app开发者平台在数字化时代的重要性与发展趋势解析
649
2022-09-03
How to request a Pull Request in a correct way on GitHub
I think git is a great version control tool. I prefer it more than SVN. Git is popular now. You might be interested in the following topic:Gitflow WorkflowForking Workflow
Today, I want to share some experience about how to request a Pull Request in a correct way on GitHub.
Maybe you have notice that there are many projects on GitHub. You contribute your work for project, and you find that you can not merge you code into codebase, you should request a Pull Request and invited some people who are authorized to review and approval.Why should has these processes here, you could refer to the topic above.Let’s focus on requesting a Pull Request in a correct way.we request a Pull Request is to merge our working branch to some certain branch(such as master or others) on remote server.The following steps are recommended. Given a background:Merge feature/story/SMB-1234 into develop/v1.2.1
Checkout your local working branch and push it to remote server(there is a corresponding branch to the local one on remote server). For example your local working branch isfeature/story/SMB-1234 ,and there is also a branch namedfeature/story/SMB-1234 on remote server.Checkout target branchdevelop/v1.2.1 and update it. It need to update it ,because maybe other members merged their code into it before what we are going to do.Checkout back to you local branchfeature/story/SMB-1234 ,then mergedevelop/v1.2.1 into current branch.Maybe you need to handle the conflicts and merge code manual.Push your local branchfeature/story/SMB-1234 again, after merge the code.Now the remote branchfeature/story/SMB-1234 has own your newest code, then you can create a pull request and invite people to review and approval on GitHub.
Thank you.I hope that can help!
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~