Re:Checkout github pull requests locally
by tomjakubowski on Monday March 25, 2013 @05:15AM
(#5436146)
Defunkt's hub tool adds a ton of GitHub-friendly commands to git, including the ability to check out a pull request and create one from the command line.
Re:Checkout github pull requests locally
by hwh on Monday March 25, 2013 @05:19AM
(#5436162)
Be sure to read the full discussion (as of now) - it mentions further options (like global configuration) and some important points - like the order of fetch config statements.
Re:Checkout github pull requests locally
by ben_straub on Monday March 25, 2013 @10:54AM
(#5437265)
The downside with this approach is that, with active projects, you end up with hundreds of remote branches. They'll never get deleted with `fetch -p`, and if you remove them manually they'll just come back.
Re:Checkout github pull requests locally
by BMorearty on Monday March 25, 2013 @11:10AM
(#5437368)
I had the same question, but then I realized where this tip is useful: for open-source projects where the PR came from someone else's fork. With this tip, you don't have to add the forked remote in order to pull it.
https://github.com/defunkt/hub
Worth checking out!
e.g. I push feature/foo to origin and open a pull request base develop. Why would one not just pull down feature/foo?