Advanced repository management

Administer Bitbucket Data Center and Server

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

This feature is available with a Bitbucket Data Center license.

In Bitbucket Data Center, you can manage all of the repositories in your instance from the Repositories page in the Administration area.

On this page

Related pages: Forks

Filtering options include:

  • Repository type - helps you filter on repositories by their type, such as those that are:

    • in projects

    • public

    • personal

  • Last changed - lets you specify a date range to find repositories based on the latest changes made to them such as:

    • create

    • push

    • ref-change

    • move

    • changes to name or description

    • changes to settings for default branch, forking, and public access

  • Search - find repositories by name, description, project, or user.

To view all repositories in Bitbucket, go to  > Repositories (under Git). Select all or multiple repositories from the list and you’ll then have options to perform bulk delete or move actions on them.

Related repositories

Advanced repository management provides the ability to review all repositories that are related to one chosen from the Repositories page.

To view all related repositories:

  1. On the Repositories page, select ••• > Related repositories next to a single repository.

  2. A new page then opens so that you can review all related forks and upstream repositories.

The same filter options are available as on the Repositories page. 


More on related repositories and terminology

When you fork a repository, you create a hierarchy of related repositories. The original repository is the root, and any parent repository of a fork is considered an upstream repository.

For example, the below hierarchy shows us that AQUARIUS is the root repository as well as the upstream to forks LEGACY and NEXTGEN.

NEXTGEN is forked to create personal repositories. So then, NEXTGEN becomes an upstream repository with two direct forks, ELLEN’S FORK and NIEL’S FORK.

Delete a repository

You can choose to delete one or multiple repositories at once. Deleting a forked repository does not delete the upstream repository, nor will deleting an upstream delete any of the forked repositories.

Deleting a repository that has related repositories will not remove its contents from the disk until all of its related repositories are deleted.

To delete a single repository:

  1. Select a repository from the list.

  2. Select ••• > Delete.

  3. To confirm, select Delete.

To delete more than one repository:

  1. Select all or individual checkboxes next to each repository.

  2. Select Delete .

  3. To confirm, select Delete.

Move a repository

You can choose to move one or multiple repositories at once.

To move a single repository to another project:

  1. Select a repository from the list.

  2. Select ••• > Move.

  3. Select the project from the Project list where you want to move the repository.

  4. If required, change the name of the repository.

  5. To confirm, select Move.

The repository will inherit the access rights of the project selected, and the clone URL is modified.

You’ll have to update the remote using the commandgit remote set-URL.

To move more than one repository:

  1. Select all or individual checkboxes next to each repository.

  2. Select Move .

  3. Select the project from the Project list where you want to move the repositories.

  4. To confirm, select Move.

Last modified on Jun 21, 2021

Was this helpful?

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