Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3817

Local checkouts of pull requests

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Answered
    • None
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            bc4fdc4f6d23 John Reilly
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: