can I make a pull request without fork?

这一生的挚爱 提交于 2019-12-24 12:17:44

问题


On Coursera course Version Control with Git, I encounterd a problem below:

Which one of these statements is true?

a) A pull request must be made from a forked repository.

b) A pull request can be made only when a branch is being merged.

c) A pull request can act as a form of review and approval.

From my perspective, both A and C are correct. There's no discussion about this problem on the course forum. So I turn to stack overflow for help.

Can someone point out which choice is correct, which are incorrect, and provide reasons? Many thanks.


回答1:


  1. A pull request can also be made on your own repository by members of that project, so the first choice is not correct.
  2. A pull request can also be made between commits, tags, and earlier points in time, so the second choice is not correct.
  3. The third point is true. So that's the answer.

Your question is technically about Github, not Git. Git doesn't have pull requests.




回答2:


Third one statement is true. because we can create pull request without being merged and can be created without fork a repository. And we create a pull request for review the changes first then we're going to merge them into repository for which we created pull request.



来源:https://stackoverflow.com/questions/52663216/can-i-make-a-pull-request-without-fork

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!