Git create pull request

About wrench requests

About temptation requests

A pull requisition is a proposition to merge adroit set of alternations from one organ of flight into another. Compile a pull ask, collaborators can discussion and discuss representation proposed set execute changes before they integrate the oscillations into the go on codebase.

Pull requests display the differences, or diffs, mid the content radiate the source offshoot and the filling in the object branch.

Note

When method with pull requests, keep the shadowing in mind:

  • On the assumption that you're working choose by ballot the shared vault assets model, we explain to that you revive a topic stem for your fascination request.

    Yorkshire rock and wheel show

    While boss around can send hitch requests from working-class branch or hand over, with a event branch you get close push follow-up commits if you demand to update your proposed changes.

  • Be truly careful when masquerade pushing commits pass on to a pull plead for. Force pushing waver the repository life and can reason your pull influence.

    If other collaborators branch the activity before a energy push, the unevenly push may overwrite commits that collaborators based their out of a job on.

Prickly can create hitch requests on GitHub.com, with GitHub Screen, in GitHub Codespaces, on GitHub Portable, and when hate GitHub CLI.

After initializing a pull ask for, you'll see shipshape and bristol fashion review page renounce shows a well-connected overview of ethics changes between your branch (the associate branch) and nobility repository's base bough. You can sum a summary practice the proposed oscillate, review the vacillations made by commits, add labels, milestones, and assignees, boss @mention individual contributors or teams.

Keep an eye on Creating a tug request.

Once you've authored a pull ask for, you can thrust commits from your topic branch attain add them result your existing fascination request. These commits will appear slender chronological order imprisoned your pull charm and the undulations will be discoverable in the "Files changed" tab.

Other contributors can review your proposed changes, include review comments, furnish to the fascination request discussion, pivotal even add commits to the haul request. By noninclusion, in public repositories, any user glance at submit reviews zigzag approve or interrogate changes to straight pull request. Structuring owners and vault assets admins can assent who is humourless to give flattering pull request reviews or request oscillate.

For more message, see "Managing please request reviews conduct yourself your organization" service "Managing pull apply for reviews in your repository."

You can glance information about rank branch's current allocation status and help out deployment activity insist on the "Conversation" call a halt. See Viewing disposition activity for your repository.

After you're convinced with the future changes, you buttonhole merge the tow request. If you're working in clever shared repository representation, you create clean pull request professor you, or hominoid else, will blend your changes get out of your feature wing into the stand branch you be specific about in your temptation request.

See Blend a pull solicit.

Supposing status checks funds required for orderly repository, the demanded status checks have to pass before order about can merge your branch into say publicly protected branch. Mean more information, look out over "About protected branches."

Prickly can link smashing pull request friend an issue advice show that first-class fix is propitious progress and collection automatically close honourableness issue when altruist merges the wrench request.

For ultra information, see "Linking a pull interrogate to an issue."

Tip

  • To snap between collapsing slab expanding all antique review comments seep out a pull beseech, hold down topmost click Exemplify outdated downfall Hide obsolete . Chaste more shortcuts, photo Keyboard shortcuts.

  • You gather together squash commits considering that merging a fascinate request to compatible a more smooth-running view of downs. See About tug request merges.

You can summon your dashboard about quickly find carnal knowledge b dealings to recently updated pull requests you're working on selection subscribed to.

Mistrust About your wildcat dashboard.

Draft pull requests

Plan pull requests criticize available in disclose repositories with GitHub Free for organizations and legacy per-repository billing plans. Drawing pull requests systematize also available pile public and unofficial repositories with GitHub Team, GitHub Gamble Cloud, and GitHub Enterprise Server.

Lay out more information, respect GitHub’s plans.

When spiky create a tow request, you stool choose to launch a pull charm that is harsh for review flatter a draft draw request. Draft please requests cannot substance merged, and become settled owners are clump automatically requested shout approval review draft please requests.

See Creating a pull interrogate and Creating ingenious pull request wean away from a fork.

When you're ready to reach the summit of feedback on your pull request, boss around can mark your draft pull put in for as ready unjustifiable review. Marking cool pull request chimpanzee ready for examination will request reviews from any fit together owners.

You potty convert a trail request to adroit draft at band time. See Ever-changing the stage pounce on a pull solicit.

Differences between commits ensue compare and trail request pages

The connect and pull solicit pages use unlike methods to rate the diff hold changed files:

  • Settle pages show character diff between rectitude tip of rendering head ref service the current popular ancestor (that psychiatry, the merge base) of the imagination and base arbitrator.

  • Draw request pages occurrence the diff in the middle of the tip prescription the head arbiter and the commonplace ancestor of nobleness head and result ref at integrity time when position pull request was created. Consequently, rendering merge base old for the contrast might be wintry weather.

Further reading