How do I disable the remote create pull request message when pushing changes

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Usage

In Bitbucket Server 3.3, a feature was added to display a message to users in the terminal with a link to create a pull request when a new branch or branch with no pull requests is pushed. This guide will explain how to turn this feature off.

1 2 3 4 remote: remote: Create pull request for ABC-123-fix-bug: remote: http://localhost:7990/projects/PROJ/repos/REPO/compare/commits?sourceBranch=refs/heads/ABC-123-fix-bug remote:

Steps

Currently this feature can only be turned on or off globally. There are two feature requests to improve the behavior:

To turn this feature off, do the following:

  1. Navigate to Administration > Add-ons > Manage apps

  2. Select System from the dropdown

  3. Search for 'Bundled Hooks' (complete name is Bitbucket Server - Bundled Hooks), expand it and its modules

  4. Find the 'print-branch-links-hook' module, select Disable

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.