When we need to test a PR in github or we want to incorporate a PR, we can checkout the PR locally.
To check out a pull request locally, use the gh pr checkout subcommand. Replace pull-request with the number, URL, or head branch of the pull request.
gh pr checkout {pull-request#}
Posted by kiatng to Git (2022-05-10 03:18)