Re:Git-hub – Do GitHub operations from the git command
by gbtxg on Friday May 29, 2015 @07:50AM
(#9623991)
Well actually you can do it without even adding a remote.
git pull https://github.com/otheruser/repo.git branchname
so your example will become git pull [email protected] pr-branch
Re:Git-hub – Do GitHub operations from the git command
by rcthompson on Friday May 29, 2015 @09:33PM
(#9628506)
Yeah, I want to do it without adding a remote for every person who sends a pull request. I presume this is git with the "hub" wrapper provided by github?
Oh, and I know I can pull directly from the appropriate URL, but I still have to browse to the pull request to get the URL for the associated branch. At that point I may as well just hit the merge button while I'm there.
edit removed unnecessary comment. What I mean is that you can already do this with git, nothing else required.
git remote add fork [email protected] && git merge fork/pr-branch