Bitbucket Cloud: git push without "Create pull request for"
After a push to a branch, Bitbucket Cloud can answer with a link that opens a new pull request for it. If your push ends with the updated branch and nothing from remote:, the console message is off in your own Bitbucket settings: turn on Enable console message (Atlassian's knowledge base, Terminal not showing "Create pull request for branch" link).
What the push prints
With the console message on:
remote:
remote: Create pull request for feature/one:
remote: https://bitbucket.org/<workspace>/<repository>/pull-requests/new?source=feature/one&t=1
remote:
With it off, the push ends with the line for the branch, such as 57491e1..4a5867f feature/one -> feature/one. The push went through either way; only the link is missing.
To open the pull request without the link: Pull Request Inbox for Bitbucket, a plugin for JetBrains IDEs, adds Git → Create Bitbucket Pull Request…, which creates it from your current branch, and offers to push the branch first if Bitbucket doesn't have it yet.
Turn it on
Open your personal Bitbucket settings (Atlassian's article calls the page Account settings) and check Enable console message. It is a setting of your account, not of the repository, so a teammate may see the link while you don't.
Other ways to start the pull request
- On bitbucket.org: the branch's own page has Create pull request, which fills in that branch as the source. The top bar's Create > Pull request does not know which branch you were looking at and opens the form with no source branch chosen (Atlassian's knowledge base, Creating a pull request does not track selected branch).
- The address the link would have given, with your branch name as
source:https://bitbucket.org/<workspace>/<repository>/pull-requests/new?source=<branch>&t=1. - From the command line or a script, the REST API (Bitbucket pull requests from the command line).
Bitbucket pull requests in IntelliJ IDEA
Pull Request Inbox for Bitbucket, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the pull requests that wait for your review in an IDE tool window, with their diffs and discussions. Git → Create Bitbucket Pull Request… creates a pull request, or a draft, from your current branch with the repository's default reviewers, and warns first if the branch or some of its commits are not on Bitbucket yet. The review inbox, diffs, discussions and merge checks are free; creating, approving, commenting and merging are Pro, with a 30-day trial. It also works with Bitbucket Data Center (beta).
Get it on JetBrains Marketplace
Bitbucket and Atlassian are trademarks of Atlassian; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by Atlassian or JetBrains.
More: Bitbucket pull requests from the command line · "Something went wrong" when creating a pull request · Pull request templates · 日本語