Thursday, March 18, 2021

Checking out pull requests locally

 

How to Checking out pull requests locally ?

Under your repository name, click Issues or Pull requests

 Issues and pull requests tab selection 

In the "Pull Requests" list, click the pull request you'd like to merge.Find the ID number of the inactive pull request. This is the sequence of digits right after the pull request's title.

Pull Requests ID number

 

Open Terminal.

Fetch the reference to the pull request based on its ID number, creating a new branch in the process.

$ git fetch origin pull/ID/head:BRANCHNAME

Switch to the new branch that's based on this pull request:

[main] $ git checkout BRANCHNAME > Switched to a new branch 'BRANCHNAME'

 

No comments:

Post a Comment