News for hackers. Stuff that matters.
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.

https://github.com/defunkt/hub

Re:Checkout github pull requests locally by ch0wn on Monday March 25, 2013 @06:05AM (#5436270)
That's part of my workflow, too. The nice part is, that you can use the URL of the PR, e.g. `hub checkout https://github.com/addyosmani/todomvc/pull/473`
Re:Checkout github pull requests locally by calinet6 on Monday March 25, 2013 @08:03AM (#5436537)
I cannot believe I didn't know this existed.

Worth checking out!

Re:Checkout github pull requests locally by propelledjeans on Monday March 25, 2013 @11:13AM (#5437383)
Hub is wonderful. Everyone reading this, use it! :)
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 propelledjeans on Monday March 25, 2013 @11:08AM (#5437354)
I'm not quite sure I understand. Why would you checkout a PR over the pushed remote branch that the PR references?

e.g. I push feature/foo to origin and open a pull request base develop. Why would one not just pull down feature/foo?

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.
Re:Checkout github pull requests locally by kyleslattery on Monday March 25, 2013 @11:50AM (#5437641)
Also, if you delete the original branch that the PR refers to, the PR branch still has all of the commits.
Re:Checkout github pull requests locally by propelledjeans on Monday March 25, 2013 @11:12AM (#5437380)
'doh! Thanks!
Re:Checkout github pull requests locally by lifeisstillgood on Monday March 25, 2013 @06:56AM (#5436400)
Interrupting work to visit the github site is a pain, so glad to see these tools out. I had assumed hub was github internal so I will give that a try
Re:Checkout github pull requests locally by dksidana on Monday March 25, 2013 @02:24PM (#5438673)
loved it