How to serve your Bitbucket Server repo without using Bitbucket Server
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
Summary
Provide access to your Bitbucket Server repo over git
protocol for testing purposes, e.g. to test clone speed.
Solution
Windows
Start the git daemon:
git daemon --export-all
Clone your repo by using the git protocol and reference the path to the bare repo folder on disk. For example, if your repo is located here:
C:\atlassian\Bitbucket Server\3.10.2\data\shared\data\repositories\3
Clone your repo using this command:
git clone git://<hostname>/atlassian/Bitbucket Server/3.10.2/data/shared/data/repositories/3
Was this helpful?