问题
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:
- A pull request can also be made on your own repository by members of that project, so the first choice is not correct.
- A pull request can also be made between commits, tags, and earlier points in time, so the second choice is not correct.
- 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