You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gh pr checkout should allow you to provide a path to checkout to #12984
@BagToad -I wouldn't be opposed to worktree support as I see where it could be of use in future.
I hope the below expanded usecase helps
The full usecase is
As a user of a tool & one that I may contribute to or perhaps don't currently contribute to but may want to from checking out the current PR to a custom path at point of checkout, like other git commands allow to map that user experience.
This could be because the PR contains changes that should fix a bug that I may be experiencing & I want to confirm whether it does or not.
Alternatively, the PR may have stalled and as such I either have been asked to by maintainers to start from this existing point & I want to add to the initial work done as part of the PR to give the original PR creator credit for the work they did initially.
I want to run this from any path on my system and this not output into my Current Working Directory.
The latter of the two however has the issue of potentially needing lots more behind the scenes git work to achieve like setting up the additional remote from the PR Author's fork, which I dnot's but with potential new flags to gh checkout this should be doable.
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the
help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Activity
BagToad commentedon Mar 21, 2026
Hey @kilasuit thank you for the write up - could you talk more about your use-case?
I'm wondering if we added worktree support, that would actually be more ideal for you?
kilasuit commentedon Mar 23, 2026
@BagToad -I wouldn't be opposed to worktree support as I see where it could be of use in future.
I hope the below expanded usecase helps
The full usecase is
The latter of the two however has the issue of potentially needing lots more
behind the scenesgit work to achieve like setting up the additional remote from the PR Author's fork, which I dnot's but with potential new flags to gh checkout this should be doable.github-actions commentedon Mar 30, 2026
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.