Can RG recommend me the command to fetch a PR locally?
See original GitHub issueSometimes you want to pull a PR locally to test and it’s really some work when you have to do something like
git fetch remote_name pull/PR_No/head:Branch_name
Eg:
git fetch origin pull/1234/head:pr-1234
Read more at: https://blog.scottlowe.org/2015/09/04/checking-out-github-pull-requests-locally/
Can Refined Github suggest the command itself by doing the hard work of sorting the PR_No
and Branch_name
itself?
I think it’s also possible to suggest a remote_name
too by checking if the username of user matches the owner of the repo.
Example: https://github.com/substack/browser-launcher/pull/35
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Can RG recommend me the command to fetch a PR locally?
Sometimes you want to pull a PR locally to test and it's really some work when you have to do something like. git...
Read more >Pull Request Proficiency: Fetching Abilities Unlocked - Atlassian
The way we use this to download all pull requests is to map how the remote repository stores the PR HEADs, and map...
Read more >Checking Out GitHub Pull Requests Locally - Scott's Weblog
If you try to fetch into an existing branch, the command will fail, so specify the name of a branch you'd like created...
Read more >How can I fetch an unmerged pull request for a branch I don't ...
Here're the commands that worked for me. ... If you want to merge this pending PR locally, then simply do: $ git merge...
Read more >How to Grab a Pull Request Locally with Git Command Line
That's about it. Please add a comment if you have any questions. Once you have this working, you can use git checkout BRANCHNAME...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Honestly I would suggest this to GitHub themselves; this text should be added by them:
However I wouldn’t mind adding a couple of “click to pull” buttons on all PRs (also replacing that text on PRs you can merge):
hub pull $url
PR welcome to add a third tab in that dropdown with instructions to fetch the PR with the ability to push to that origin. The dropdown only exists for maintainers, so it makes sense to include that ability.
I think the command is this, but exploration needed: