Details
-
Suggestion
-
Resolution: Answered
-
None
-
None
-
None
Description
Repos on Github allow you to configure your local repo to fetch pull requests, as seen here: https://gist.github.com/piscisaureus/3342247
Here's what that gist lets you do:
$ git fetch origin From github.com:some/project * [new ref] refs/pull/1000/head -> origin/pr/1000 * [new ref] refs/pull/1002/head -> origin/pr/1002 * [new ref] refs/pull/1004/head -> origin/pr/1004 * [new ref] refs/pull/1009/head -> origin/pr/1009 ...
To check out a particular pull request:
$ git checkout pr/999 Branch pr/999 set up to track remote branch pr/999 from origin. Switched to a new branch 'pr/999'
Could Stash be set up to achieve a similar result? Right now I'm doing lots of copy/pasting of branch names when I want to do a git checkout on someone's pull request.
Thanks!
-John