How to customize the clone URL for a Bitbucket Server Smart Mirror

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.


Once you have set up a smart mirror, you'll notice that Bitbucket Server provides a git clone url for you by default which may look something like:


 git clone ssh://


You may, however, want something other than what Bitbucket Server has generated in the the upstream identifier part of the clone URL.


  1. Install Mirror
  2. Before starting mirror add the following to the $BITBUCKET_HOME/shared/ file:

The <custom-upstream-identifier> bit will replace the Bitbucket Server generated upstream identifier portion of the clone URL.

Last modified on Nov 2, 2018

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.