为什么GitHub会调用外部提交,“Pull Request”? [英] Why does GitHub call foreign submissions, a "Pull Request"?

查看:96
本文介绍了为什么GitHub会调用外部提交,“Pull Request”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的理解是, git pull 将从远程存储库中将所有更改提取到当前工作分支。然后将这些更改与 FETCH_HEAD 合并。 ( Git Pull



因此,看看 git push ...一个推送实际上会将提交的更改推送到存储库。这不是你在做一个Git回购的工作吗?提交请求来合并你的代码?那么,为什么它不被称为推送请求?

解决方案

有多少个开源项目组织自己。您不要只是将更改推送到存储库中(就像您使用集中式存储库(例如使用Subversion)一样),您将分别发布更改,并要求维护人员引入更改。然后维护人员可以查看所做的更改并执行所需的操作。


I'm curious why GitHub calls submissions to merge, "Pull requests."

From my understanding, git pull will pull all changes, from a remote repository, into a current working branch. Then merge those changes with FETCH_HEAD. (Git Pull)

So taking a look at git push... a push would actually push committed changes to a repository. And isn't that what you are doing with a Git repo? Submitting a "request" to merge your code? So why isn't it called a "Push request"?

解决方案

The term "pull requests" comes from the distributed nature of how many open source projects organize themselves. Instead of just pushing your changes into the repository (like you would do with a centralized repository, e.g. with Subversion), you are publishing your changes separately and ask the maintainer to pull in your changes. The maintainer then can look over the changes and do said pull.

这篇关于为什么GitHub会调用外部提交,“Pull Request”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆