youngmon/atlassian-qna huggingface dataset:
How to create a bitbucket cloud workspace when new top navigation is enabled.
Asked by Ulrich Kuhnhardt _IzymesCo_:

In the 'old' Bitbucket Cloud navigation it was possible to [create a new workspace](https://support.atlassian.com/bitbucket-cloud/docs/create-your-workspace/).

The '+' icon for this action does not appear in the new top navigation.

![no plus.png](/t5/image/serverpage/image-id/189109i7DC657729A5E0581/image-size/large?v=v2&px=999 "no plus.png")

As soon as I disable the new navigation I can create workspaces again via the '+' icon.

Any ideas?


Answers:
author: Caroline R
body: Hi, Ulrich, thank you for reaching out to Atlassian Community.

When using the new navigation, you can create a new workspace by following the next steps:

* Open your workspace \> click on your avatar in the upper right corner:

![1.png](https://community.atlassian.com/t5/image/serverpage/image-id/189233iB1B8D85A693B5F5A/image-dimensions/253x452?v=v2 "1.png")

* Open **All workspaces**

* There, you should see the option **Create workspace**:

![2.png](https://community.atlassian.com/t5/image/serverpage/image-id/189234i5DFB68041726F36B/image-dimensions/598x140?v=v2 "2.png")

* You can also open the following link to access this page:

  * [https://bitbucket.org/account/workspaces](https://bitbucket.org/account/workspaces/)

Thanks for asking this question, I will ask the responsible team to update our documentation with this information.

Kind regards,   
Caroline

comments: author: azmeer
body: I cant see the "Create Workspace" button. Is there a limit to how many workspaces I can create. I already have 7.


Tags: bitbucket-cloud

cloud
Automerging from Dev to Qa branch
Asked by tv- cm:

Is there is any way in bit-bucket through which we can merge Dev to Qa branch?  
I mean to say whenever the new code comes in Dev branch it merges into Qa branch after approval from reviewers?


Answers:
author: Caroline R
body: Hi, [@tv- cm](/t5/user/viewprofilepage/user-id/4828173), welcome to the community!

Currently, we don't have automatic branch merging in Bitbucket Cloud. There is a feature for auto-merging when **builds pass**, which is useful if you have merge checks (for at least X successful builds) as a requirement for merging PRs.

In order to use this feature, you'll need to enable this for the branch that you wish to automatically merge from **Repository Settings** \> **Branch Permissions** \> **Edit/Add branch permission** \> **Allow automatic merge when builds pass.**

You can read more about how this feature works in the following blog post:

* <https://bitbucket.org/blog/automatic-merging-when-builds-pass>

With that said, we also have a feature request to add automatic branch merging for Bitbucket Cloud as you can see here:

* <https://jira.atlassian.com/browse/BCLOUD-14286>

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
i am not able to access project repo
Asked by Archana Pandagare:

i am not able to access project repo


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

We can't really help you unless you can tell us what the problem is. "I am not able to" tells us nothing - it could be an access issue, availability, or even a penguin having a nap on your keyboard for all we know from "I am not able to". Could you describe the problem?


Tags: bitbucket-cloud

cloud
trigger pipeline with branch permissions from a other pipeline
Asked by Lars_langhans:

I have a build pipeline to build my source then it should trigger a further pipeline of an other repository with branch permissions.

The result is all the time "Permission denied".

What I've done:

I use "bitbucket.org/atlassian/trigger-pipeline.git" to trigger the further pipeline, which works like a charm. Now I try to write/push into this further git repository via bash script. To restrict the rights I activate the "Branch permissions" in the further pipeline. To myself, Administrators and DevOps (I'm Administrator). When I try to push, the result is always "Permission Denied". I change the git user by hand (git config user.name "myself"... also user --author "myself \<email\>"), create a new AOuth consumer in my workspace settings with all settings active. With this AOuth I get a new token and add this by git remote set-url origin http://x-token-auth:\<token\>@bitbucket.org... I can do git pull, git commit but I can't push to my repository.

When I remove the "Branch permissions" in my further repository, I can make a git push and it works as expected.

So one simple question, for what should such "Branch permissions" be good if they don't work as expected? It is absolutely not clear.


Answers:
author: Theodora Boudale
body: Hi [@Lars_langhans](/t5/user/viewprofilepage/user-id/3814226),

At the moment, it is not possible to expose the Bitbucket Pipelines user in branch permissions, to allow pushes from Pipelines when the repo has branch permissions.

We have a feature request about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-19136>

Is your Bitbucket account added with Write access in the branch permissions of the branch you want to push to?

If so, you can do the following:

**1.** Create an OAuth consumer for your personal workspace instead of the workspace that owns the repo.

Your personal workspace can be found here <https://bitbucket.org/account/workspaces/>, it should have the same id as your username

**2.** Use the key and secret of that consumer to generate an access token.

We have an example repo on how to do this here: <https://bitbucket.org/bitbucketpipelines/git-auth-oauth/src/master/bitbucket-pipelines.yml>

You should then be able to push (as long as your Bitbucket account has Write access in the branch permission).

Is this something that works for you?

Please note that changing the user.name and author.email in the .git/config of the repo doesn't affect authentication, these values are only used for the author name and email in the commit data.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Run garbage collection
Asked by Aarushi Mehta:

My repository "alive" is touching 3.6 GB on bitbucket, I deleted several files on it using git filter-repo [(as recommended by the git project](https://git-scm.com/docs/git-filter-branch#_warning).) Despite pushing the same, size has not reduced, in fact it increased from 3.0 to 3.6GB. On pushing the local cleaned repo to a new remote (aka alive_reduced) the size is down to 200 MB. It is urgent that garbage collection be run server side. I have rewound head and pushed to trigger it automatically (Dangling commits enabled in Labs) but to no avail.

It would be great if the support team could run gc server side.

Regards.


Answers:
author: Theodora Boudale
body: Hi [@Aarushi Mehta](/t5/user/viewprofilepage/user-id/4827949),

I ran a git gc on this repo and its size is 873.1 MB now.

You mentioned that the local cleaned repo is 200 MB. Does this local repo have all branches that the remote does?

Could you try taking a mirror clone of the repo with the command

```
git clone --mirror <repo_url>
```

then run the command **git count-objects -Hv** inside that mirror clone, and let me know what is the output?

The following
> I have rewound head and pushed to trigger it automatically (Dangling commits enabled in Labs) but to no avail.

will trigger a garbage collection only if the repo is over the 4 GB limit, which explains why it wasn't triggered for your repo.

We have a feature request to allow users to trigger a git gc for their remote repos:

* <https://jira.atlassian.com/browse/BCLOUD-11593>

If you'd be interested in that, I would suggest adding your vote in the feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Kind regards,  
Theodora

comments: author: Aarushi Mehta
body: Thank you for addressing this and your explanation!

**git count-objects -Hv** gives me:  
count: 0  
size: 0 bytes  
in-pack: 11466  
packs: 1  
size-pack: 234.25 MiB  
prune-packable: 0  
garbage: 0  
size-garbage: 0 bytes

It is not as high priority as we ended moving to another repo! Thank you. I have voted on said issue as well  

Regards


Tags: bitbucket-cloud

cloud
Not able to clone Bitbucket repository using SSH key
Asked by patelpreksha:

Hi,

We are facing an issue when trying to clone the Bitbucket repository from Squiz Matrix. I am getting following error:

```
Error occurred when running git command "/usr/bin/git ls-remote 'Bitbucket_repo'": fatal: Could not read from remote repository., , Please make sure you have the correct access rights, and the repository exists.
```

The SSH key from Squiz is added to the Bitbucket repository access keys so that it can read the Bitbucket repository from Squiz.

`$repo/admin/access-keys/` (where `$repo` is replaced with the top-level URL of your repository. For example, <https://bitbucket.org/user/repo>)

Any idea what could be the issue? Is there any Firewall to Bitbucket which is causing the issue?

This is high priority for us to setup the repo to start the project work. So any help would be appreciated.

Thanks,

Preksha


Answers:
author: Syahrul
body: Hi [@patelpreksha](/t5/user/viewprofilepage/user-id/4814453)

Welcome to the community!

I am not familiar with how "Squiz Matrix" works, but just to confirm you are copying the SSH key from Squiz matrix and adding it on repositories A, then you try to clone from Squiz matrix for repositories A?

If yes, then I believe Squiz matrix is not using the correct SSH key to clone hence you are getting the permission error. You may need to check if the SSH is configured correctly for the Squiz matrix.

If you are not cloning repositories A and instead of cloning repositories B then it's expected because you added the SSH key on repositories A and you can only access that. If you want to access all other repositories under your WOrkspace. then you'll need to navigate into Workspace settings \> SSH keys and add the ssh keys here so that it has access to all repositories under your Workspace.

I hope this helps.

Cheers,

Syahrul


Tags: bitbucket-cloud

cloud
How can I merge the content of two Bitbucket users?
Asked by UEC Admin:

I have followed these instructions for Confluence: <https://confluence.atlassian.com/confkb/how-to-merge-two-users-content-ownership-and-permissions-in-confluence-957149073.html>

I need the corresponding instructions for Bitbucket too, specifically for comments, approvers etc. I understand that commits go by the Git history in the respository, I am less concerned about this. I realise that these operations are not officially supported and may result in disaster etc.

I was unable to find any corresponding instructions for Bitbucket during my own searches though.


Answers:
author: TJ-LDS
body: Any suggestions?


author: Dexter Broadnax
body: Hi There!

Theres no option to merge accounts. You will need to select which account you wish to use and [transfer](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) their repositories from one account to another.

comments: author: UEC Admin
body: None of the team members have personal repositories so i don't need to worry about that. I am only concerned with approvers and comments.

I am aware that there is no option to merge accounts, but I want to know which rows/tables in the database to edit, same as the Confluence counterpart I linked.


author: Matyas Halasz
body: Hey,

any update on this topic?

Regards, Mat


Tags: bitbucket-server

server
Why is the Boards Menu Item not visible for me?
Asked by Tamara Seifert:

Hi there!  

The Board menu is missing and I cannot find any settings for Trello Boards in Bitbucket. What do I have to do, to activate it?

![Missing.png](https://community.atlassian.com/t5/image/serverpage/image-id/189002i5E807EA1792A4A6B/image-size/large?v=v2&px=999 "Missing.png")


Answers:
author: Caroline R
body: Hi, Tamara, welcome to the community!

As you can check in this article, [Deprecating Trello in Bitbucket](https://community.atlassian.com/t5/Bitbucket-articles/Deprecating-Trello-in-Bitbucket/ba-p/1857062), after much consideration, we've decided to deprecate the Trello feature in Bitbucket due to low usage and high maintenance costs. This will enable us to focus on improving and building the most important features for our users. According to this article, this is the **Sunset timeline:**

* 10/11/21: users will no longer be able to enable the Trello feature in Bitbucket.

* 8/6/22: users will no longer be able to see Trello cards in Bitbucket. The feature will be removed from all Bitbucket workspaces and repositories.

To continue seeing issues in Bitbucket, we recommend migrating from Trello to Jira and connecting Jira with Bitbucket. This will help your team view issues, plan work, and track projects more easily within Bitbucket and help your team stay on top of code and deployments within Jira. [Learn more](https://www.atlassian.com/software/jira/bitbucket-integration)

1. [Import data from Trello](https://support.atlassian.com/jira-cloud-administration/docs/import-data-from-trello/)

2. [Link Bitbucket with Jira](https://confluence.atlassian.com/bitbucketserver0715/link-bitbucket-with-jira-1082270791.html)

Please feel free to share any additional questions or concerns regarding this case.

Kind regards,   
Caroline

comments: author: Tamara Seifert
body: Thank you for the explanation!


Tags: bitbucket-cloud

cloud
Cannot add SSH Key
Asked by milos_cancarevic:

Hi,

I cannot re-add my SSH key to my account.  

I keep getting this error:  
"Someone has already added that key as an access key to a repository"  
but that key was previously deleted from my account.  
Adding this output:

ssh -Ti id_rsa git@bitbucket.org  
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled  
I kindly ask you for a quick help here,  
BR,  
Milo?


Answers:
author: milos_cancarevic
body: I've managed to resolve this. What the issue was - In one of my repositories, I had set up an SSH key in the Access Keys section, so it was stopping me to add it to my personal account as well. I removed it from the repository and successfully added it to the profile SSH keys.


author: Caroline R
body: Hi, Milo?, welcome to the community!

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please feel free to let me know if you have any questions.

Kind regards,   
Caroline


author: milos_cancarevic
body: Previously changed my email address for the account, but didn't have this key... I removed it and want to add it back again.


Tags: bitbucket-cloud

cloud
Only access to one of my repos
Asked by la55e:

I connect to bitBucket with SSH-key, and the puplic key is added under personal settings (not under repo settings) so I would expect that the key should work for all repos. Anyway, I can only clone one of my repositories. I also just created a new fresh repository from WEB login, but same problem when I try to clone that one:

Unauthorized  
fatal: Could not read from remote repository.


Answers:
author: Syahrul
body: Hi [@la55e](/t5/user/viewprofilepage/user-id/2080829)

G'Day!

When the SSH public key is added under your personal settings it should follow your personal account permission when cloning repositories as long as you have the permission to access it.

Could you try to clone via the CLI with the following parameter:

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" git clone <url>
```

The verbose logs should show if it's correctly using your SSH key generated or not. Look for "Will attempt key" keywords in the logs which should show that git is trying the list of SSH keys in your local machine that has access to clone the repositories.

If it's not using the SSH keys correctly you can change this by creating an SSH config file by creating it under \~/.ssh/config

    Host bitbucket HostName bitbucket.org IdentityFile <path to your sshkey>

I hope this helps.

Cheers,  
Syahrul

comments: author: la55e
body: Thanks Syahrul,

I found a solution. In addition to the keys I had under "personal settings" I also had one key for the repository which I could access. When I removed this key, I could also access the other reopsitories. Do not know why, but now it works :-)

BR

Lasse


Tags: bitbucket-cloud

cloud
could not read from remote repository
Asked by Francesca Giammichele:

Hallo,

I have a problem with pulling my repo on the server computer. In my BitBucket account, I have enabled the 2fa and had created an ssh key according to the documentation

<https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

Everything worked a few days ago and I could successfully pull my repo from bitBucket.

After fixing a bug, today I was trying to pull the fixed repo but I got this message

*\`\`\`*

*To access this repository, enable two-step authentication.*   
*fatal: Could not read from remote repository.*

*Please make sure you have the correct access rights*   
*and the repository exists.*

\`\`\`

I have already googled for a solution and tried adding a new key but I still could not have the pull working. I am the only person working on that repo and can not understand what might have changed in a few days. I have only noticed that the ssh in my bitBucket repo was used dew days ago and not used today, after my pulling attempts

the URL for git repository is already updated to ssh

if I run ssh -T git@bitbucket.org I get this message:

\`\`\`

*authenticated via ssh key.*

*You can use git to connect to Bitbucket. Shell access is disabled*

\`\`\`

I have also tried with a different network, VPN and checked that bitBucket services are on and working. Any help, please?


Answers:
author: Francesca Giammichele
body: created and modified the .ssg/config file with this lines:

\`\`\`\`

Host \*

IdentityFile \~/.ssh/id_rsa

\`\`\`\`

it works now :)

comments: author: Scott Chapman
body: Thanks for this, this fixed my issue as well! To be more specific: I created a specific key for bitbucket and had to update \~/.ssh/config to include a reference to that key for the bitbucket server:

```
Host bitbucket.org
    HostName bitbucket.org
    IdentityFile ~/.ssh/bitbucket_devrig
```


author: Syahrul
body: Hi [@Francesca Giammichele](/t5/user/viewprofilepage/user-id/4826597)

Welcome to the community!

Just to confirm are you still having an issue with this?

This error looks like you are trying to access a Workspace that has their [Premium access feature enabled](https://support.atlassian.com/bitbucket-cloud/docs/bitbucket-cloud-premium-plan/) that enforce users to enable their two-steps verification account before they can access the Workspace and repositories.

I can see that your Bitbucket account has all the requirements setup correctly so you should have no issue to access, please confirm if you are still affected by this.

Cheers,  
Syahrul

comments: author: Francesca Giammichele
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) , yes I still have the issue :(

But what I cannot really understand is why it worked correctly a few days ago :(

The only thing that comes to my mind is that I created the ssh key with a password. However the first time I used the git pull I was asked for none.

Do I need to use that password somewhere when pulling the repo? What is the difference in creating a ssh key with or without a password, then?


Tags: bitbucket-cloud

cloud
Need to restrict user to access old versions of bitbucket files
Asked by Raj Kumar Samakari:

Hi  

We have a file with the user name and password and some text in a repo.  
we committed that repro later we under we should not put password public.  
So we made changes to the file and removed the password.  
But still, if we open the file history/versions if we check the old version the password will be still avalibile.  
since we need to restrict that version to be accessed by users.


Answers:
author: Theodora Boudale
body: Hi [@Raj Kumar Samakari](/t5/user/viewprofilepage/user-id/4826069) and welcome to the community.

It is not possible to restrict access to certain files or commits in a repo.

My suggestion would be rewriting history to remove this file from the repo's history (and afterwards commit it again, without the password).

One tool you could use for removing the file from the repo's history is BFG:

* <https://rtyley.github.io/bfg-repo-cleaner/>

If you check the examples on that page, it is possible to use it with the flag **--delete-files** in order to delete the file from the repo's history.

**Please note:**

* Rewriting history means that the commit hashes of the repo will change. It would be good to communicate this with your team, and also ask them to take a new clone of the repo after you finish this process, to avoid pushing any of the old commits back.
* Make sure you take a backup of the repo prior to doing any changes (a clone with the --mirror flag, other than the one where you use BFG) in case anything goes wrong, as rewriting history involves destructive operations. I would also suggest pushing any changes to a newly created empty repo first, to check if the repository is in good shape before you push to the repo you are working on.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to push
Asked by boomramada:

When I try to push through eclipse I'm getting authentication error.

Can't connect to any repository:

<https://bitbucket.org/> (: not authorized)

This was working fine before.

Then I went through \> Get Repositories \> Remotes \> origin then clear the credentials on and try again, getting the same issue.

I never had certificate setup, so I thought I might have try that.

I created a certificate then add it to \> Preference \> General \> network connection and SSL

set the SSH2 path, Private key, then add the key to the bitbucket under setting.

Still I can not push.


Answers:
author: boomramada
body: I found the solution, you no longer can use username and password. You need to use the keys by following this

<http://guganeshan.com/blog/setting-up-git-and-tortoisegit-with-bitbucket-step-by-step.html>

comments: author: chuck666
body: what are the steps in eclipse not tortoise


author: vinothkumar1791
body: Same here!!!!


author: felipe_barbosa
body: Same here

comments: author: felipe_barbosa
body: It solved today in the morning.


author: bogdangheorghe
body: Same here. Any solutions?


author: JaneVilhelmsen
body: Same problem here


author: adepase
body: Same here


Tags: bitbucket-cloud

cloud