youngmon/atlassian-qna huggingface dataset:
Migrate code from Bitbucket to GitHub
Asked by AmruthaTamanam:

i am trying to import a repository from bitbucket to GitHub \& i get an email that the importing is failed.

when i contacted them they say that its the issue with large files but i do not see them in the repo.

We checked the logs and it seems you are running into a large file issue. Specifically, the repository failed to import because of large objects (greater than 100 MB) included in the repository history.


Answers:
author: Mikael Sandberg
body: Have a look at this [post](https://stackoverflow.com/questions/10622179/how-to-find-identify-large-commits-in-git-history), is shows you a git command that you can run to get a list of large files in a repo.


Tags: bitbucket-cloud

cloud
Why can't I see "Branch Permissions" as an option at the project settings level
Asked by Jeff Mylrea:

I can't see Branch Permissions under settings for a project. I can only see branching model and merge strategies under workflow.

from the documentation it seems this at least was possible in the past or may have been removed?

or is it some setting that I have missed in our workspace that has disabled this?


Answers:
author: Caroline R
body: Hi, [@Jeff Mylrea](/t5/user/viewprofilepage/user-id/1174335), thank you for reaching out to Atlassian Community.

Currently, branch permissions in the project level are just available in the Bitbucket Server/Data center, as you can see in this doc:

* <https://confluence.atlassian.com/bitbucketserver/using-branch-permissions-776639807.html>

When using Bitbucket cloud, you can add branch permissions at the repository level. In order to do that, you can open your repository \> go to **Repository settings** \> **Branch permissions**. This is the doc for branch permissions on Bitbucket cloud:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/>

With that said, we are already working on implementing project permissions on Bitbucket Cloud as well, as you can see in the following feature request that is in progress:

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

I would suggest that you add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

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

Kind regards,   
Caroline

comments: author: Pascal Puy
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) ,  
I followed your mentioned doc "<https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/>".  
The problem is that I dont have any sections like "**Write access** ". Only this:![MergeChecks.png](https://community.atlassian.com/t5/image/serverpage/image-id/248170i258275A3A56B2900/image-size/large?v=v2&px=999 "MergeChecks.png")

What am I missing?


author: Theodora Boudale
body: Hi [@Pascal Puy](/t5/user/viewprofilepage/user-id/3737848),

Based on your screenshot, it looks like you are using Bitbucket Server or Data Center.

The documentation you linked is applicable to Bitbucket Cloud only.

The branch restrictions documentation for Bitbucket Server or Data Center is the following:

* <https://confluence.atlassian.com/bitbucketserver/using-branch-permissions-776639807.html>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How Do I make sure Forked repo is visible to me only
Asked by Shyam:

How do I make sure Forked repo is visible to only me not anyone in company?.

And after forking the repo , whatever we do in this forked repo, it does not impact the original repo, am I correct?

And 3rd question is when we enable fork sync while doing forking, does it allow parallel changes would sync automatically to forked repo whatever we do in original repo?


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

G'Day!

How do I make sure Forked repo is visible to only me not anyone in company?.
> It depends on the location you want the repositories to be forked. If it's your personal Workspace then only you have access if you don't have anyone else in your Workspace. You can also create a new Workspace and fork it over to there so you'll be the only one who have access.
>
> In short, this depends on the Workspace you wish to store the fork repositories.

after forking the repo , whatever we do in this forked repo, it does not impact the original repo, am I correct?
> Correct, any changes made in the forked repo will not be synced automatically to the original repositories.

when we enable fork sync while doing forking, does it allow parallel changes would sync automatically to forked repo whatever we do in original repo?
> We only have sync features from original repositories to the fork repositories and it's not vice versa. So. you can't sync changes from forked to original repositories. You can only update the changes via pull request.

I highly suggest you check out our documentation for more information at

[Repositories fork](https://support.atlassian.com/bitbucket-cloud/docs/fork-a-repository/)

Hope this helps

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
Reviewer groups to be used in the default reviewers
Asked by Franz F:

Hello,

* It is possible to create a reviewer group.
* It is possible to use that group for the review of a PR.
* So why can't I use that group in the default reviewers of the repository?

Did I do something wrong? Or is there a functionality missing here?

Thanks,

Pierre


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Franz,

In Bitbucket server/datacenter you can build your own repository reviewer groups - <https://confluence.atlassian.com/bitbucketserver/reviewer-groups-for-pull-requests-1064084872.html> and add them as reviewers when you create the pull request as you have already implemented.

Declaring reviewer groups as default reviewers is still a missing feature.

We have solved this problem with the [Workzone app](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=datacenter&tab=overview) - you can declare default reviewer groups

* per source and target branch
* per file/path/module
* use repository reviewer groups _and_ AD groups

You can further specify required approval quotas per group (or one for all groups) to make sure at least N members of each group have approved before the PR can be merged.

Give it a go and [let us know if you have any questions](https://izymes.atlassian.net/servicedesk/customer/portal/1/group/1/create/3).

Cheers, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)

comments: author: Ulrich Kuhnhardt _IzymesCo_
body: ... forgot to say - same functionality is also available in [Workzone for Bitbucket Cloud](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=cloud&tab=overview) should you have moved to cloud by now.

Best, Ulrich


Tags: bitbucket-server

review

server
VS 2022 - Failed to push\ fetch or pull from and to the remote repository.
Asked by khadeeja alrashdi:

my issue with VS 2022 and bitbucket is every time when I try to push or fetch changes, the app asks for Atlassian login while when I try to access it from the web the page auto routed to my company SSO.

so how can I know Atlassian password ..

error message: Failed to push to the remote repository. See the Output window for more details.

Failed to push to the remote repository. See the Output window for more details.  
Pushing nmcgi-nphies2  
Error encountered while pushing to the remote repository: Git failed with a fatal error.  
Git failed with a fatal error.  
helper error (-1): Value cannot be null.  
Logon failed, use ctrl+c to cancel basic credential prompt.  
cannot spawn /microsoft visual studio/2022/community/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory  
could not read Password for "account xxx "

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


Answers:
author: Syahrul
body: Hi [@khadeeja alrashdi](/t5/user/viewprofilepage/user-id/2995216)

G'Day!

If you are logging in through SSO I'd suggest you create an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) which will act as your temporary password for your authentication.

Let me know if that helps.

Cheers,  
Syahrul

comments: author: sriprasanna.mg
body: With VS 2022 the bitbucket plugin (datacenter) does not work and there is no maintainer for it .

and... there is no answer from ATLASSIAN for getting such VS integration features as supported by Github's VS plugin. Please see here: [GitHub Extension for Visual Studio - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=GitHub.GitHubExtensionforVisualStudio)

I think this is a really bad situation for teams using Visual Studio for development.

I created an issue here to bring attention / upvote

[\[BSERV-13342\] Bitbucket datacenter extension for Visual Studio - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/BSERV-13342)


Tags: atlassian-guard

bitbucket-cloud

cloud
Trigger Pipeline on Wiki update
Asked by Michael Lloyd:

I would like to trigger a pipeline action when any commit is made to a repository wiki page. Is there a way to track when commits hit the wiki for a repository from within a bitbucket pipeline?


Answers:
author: Syahrul
body: Hi [@Michael Lloyd](/t5/user/viewprofilepage/user-id/4820194)

Welcome to the community.

I believe it's not possible to trigger a pipeline when a new commit in the repositories wiki page was made. We don't have a feature to trigger this since Wiki is not used with CI/CD in general.

However, if needed can you give me a used case of why you wish to have this, and I can create a feature request on behalf of you.

I look forward to hearing from you.

Cheers,  
Syahrul

comments: author: Michael Lloyd
body: We use Atlassian as a department, but our organization has a github organization for public repositories. Our development is done in Bitbucket, but is then mirrored to the public Git repo. It would be nice to be able to mirror changes made to the Bitbucket repo to Github. For now, I may just maintain the Github wiki as the repo of note.

Thanks.


Tags: bitbucket-cloud

cloud
How to restore only the Delegated Ldap authentication config file?
Asked by Banerjee, Somak:

We have an on-prem server which is also in our backup solution.

We were trying to create a new delegated LDAP permission for a different team by using the Add Directory option within User Directories in the Administration. We were able to create the directory but when we deleted it post the testing, the configuration made in the original directory were removed, specifically from the ldap.group.filter

Now we are trying to retrieve the old config file however I dont know the location where it is stored. Is it stored on the server or does it also reside in the DB? Is there a way to restore it without restoring the entire server?


Answers:
author: Christian Glockner
body: Hi,

The directory configuration is stored in the database only. If you can restore the database somewhere else you can retrieve the required data from the cwd_directory an cwd_directory_attribute tables.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

ldap

server

user-directory
My phone recently broke so I can't get access to my Bitbucket Account
Asked by Rowan Foster:

Hi there,

I went onto my computer yesterday to find that Chrome had forgotten all my passwords and meant I needed to sign into Bitbucket. The problem is that my phone recently broke and meant that I can no longer get access into my account.

I also don't have the security code for my account.

I followed the process of waiting 24h to get a magic link sent which I received this morning however clicking this link, for the first time, directed me straight to the 2 factor sign in after I put in my email and password.

I have requested another 24h email but I'm worried that I'll be blocked from my work for another 24 hours and the same thing happening again where I can't bypass the 2 factor sign in.

Thanks


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

I've sent you a new 2SV recovery email, could you please confirm if the link works now?

Kind regards,   
Caroline

comments: author: Rowan Foster
body: Hi Caroline,

It is still not working.

I have just followed the link, entered my email and password and again I'm met with the 'Continue with two step verification' screen.

Thank you for your quick response.

Rowan.


author: Caroline R
body: Hi, Rowan.

I can see that, besides the 2sv in your Bitbucket account, you have the MFA in your Atlassian account enabled. So this message you are seeing is probably related to the Atlassian account, not the Bitbucket. In order to disable this, you can follow the steps described in this doc, under the section **Disable two-step verification**:

* <https://support.atlassian.com/atlassian-account/docs/manage-two-step-verification-for-your-atlassian-account/>

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,   
Caroline


author: Rowan Foster
body: Hi Caroline,

I went into my Atlassian account and disabled the MFA and tried the magic link in the email and it worked!

I didn't make the association between my Atlassian and Bitbucket accounts as I could still enter my Atlassian account.

Thank you for your help! :)


author: Caroline R
body: Hi, Rowan! I'm glad to know it worked! :)


Tags: cloud
Master branch has no commits available
Asked by costa:

Hi everyone,

We have strange glitch. If I select master branch in commit filters (/commits/branch/master)  

I see:   
No commits available  

Even though git and Visual Studio works perfectly, all commits are available there. And i can see Master branch in Source tab in bitbucket.  

Any help would be appreciated. Thank you.


Answers:
author: costa
body: Fixed. We pushed one commit to master, directly from bitbucket editor in browser. Now everything is back to normal.


Tags: bitbucket-cloud

cloud
Cannot receive Bitbucket workspace invitation email
Asked by Steve Tran:

My project manager is trying to send me invitation to join the project workspace, but I don't receive any emails. This has been tried multiple times on multiple days to no avail. I do not know they project workspace's url so I cannot submit a support ticket. Is there anything else I can do?


Answers:
author: Ben
body: Hey Steve,

Feel free to submit a support ticket using your own personal workspaceID, free customers are entitled to log tickets relating to workspace invitation issues.

Once a ticket has been logged, you may provide your email address on that ticket to avoid sharing this publically.

Cheers!  
- Ben (Bitbucket Cloud Support)  

comments: author: Steve Tran
body: Hi Ben,

Thank you for your help. I submit a support ticket and the issue has been resolved.


Tags: bitbucket-cloud

cloud
How to use secrets in code as variables in pipeline?
Asked by Vladimir Parlikj:

Hello guys, I am using Selenium with Java Maven for automation UI testing. In the photo bellow I use username/password from .env file and is working perfectly fine locally.

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

My question is how and is it possible to setup TEST_USERNAME and TEST_PASSWORD as variables in Bitbucket and use them during the pipeline?


Answers:
author: Theodora Boudale
body: Hi [@Vladimir Parlikj](/t5/user/viewprofilepage/user-id/4648239) and welcome to the community!

You can define Pipelines variables  
- either for a workspace (they can be used by all repos in that workspace)  
- or for a repository (they can be used in that repo only)  
- or as deployment variables (they can be used only in a deployment step of that specific deployment)

You can see more details here:

* <https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#User-defined-variables>

If you define a variable named TEST_USERNAME, then you can reference it in a file as ${TEST_USERNAME}

If you don't want to make use of Pipelines variables and you want to use the .env file you have, then you can

- commit the .env file in the repo (if it's not part of the repo already)  
- source it at the beginning of the build, e.g. if the file is named build.env

```
source build.env
```

- you can then reference the variable the same way, as ${TEST_USERNAME}

Is this something that works for you? Or do you perhaps have some different/additional requirements?

Kind regards,  
Theodora

comments: author: Vladimir Parlikj
body: yeah, thank you [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)


author: Theodora Boudale
body: You are welcome Vladimir, please feel free to let me know if you need anything further!

Kind regards,  
Theodora


Tags: bitbucket-cloud
Create a new repository with mercurial is no more available
Asked by Giulia Fabbri:

in documentation I read that is possible to create a new repository with mercurial (<https://support.atlassian.com/bitbucket-cloud/docs/create-a-new-repository/>) but when I try to add a new repo in bitbucket I can't see the same option:  

![NewRep.png](/t5/image/serverpage/image-id/188580iDCEBB408F9FC46AA/image-size/large?v=v2&px=999 "NewRep.png")


Answers:
author: Ben
body: G'day Giulia!

Thank you for bringing this to our attention, Bitbucket Cloud ended support for Mercurial repositories back in 2020 as per our article:  
<https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

The documentation which you have provided will need to have the screenshot updated to reflect this, I will be reaching out to ensure that this occurs.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Annoying BitBucket login prompt
Asked by Mick Lang:

I'm finding coming back to my machine left on overnight to find a million Atlassian Connect to Bitbucket logins and my machine being starved of resources. If that's not annoying enough, there's nothing on this dialog to indicate which repository it's trying to connect to. I connect to multiple bitbucket repositories using different credentials. I just have to try and guess which repository its failing to connect to?

This question is forcing me to choose hosting type... I connect to some BitBucket repositories in the cloud and some hosted on on servers.

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


Answers:
author: Theodora Boudale
body: Hi Mick,

One possible reason I can think of for this prompt is a Git GUI client that may have a setting to check the remotes for updates every X minutes (I don't think that the prompt would be displayed if there was no attempt from your machine to communicate with the remotes).

Are you using a Git GUI client to interact with your repos? And if so, which one?

Also, do you use a Git credential manager on that machine?

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-server

server
new phone, 2FA enabled and don't have the backup codes
Asked by michael_lynch:

Hello!  
I'm a system admin for Jira products in my company. I have a Bitbucket user who had to change out her phone, and she does not have the backup codes. She has 2FA enabled on her account and so is now locked out of Bitbucket. She was using Authy for 2FA. Is she out of luck or is there a way of getting her back into Bitbucket? Would she just have to set up a new BB account?


Answers:
author: aumirnpay
body: I had a similar situation and I recovered my account. You need to send a recovery request, this method only works if the mail for which the account was created has not been lost. As far as I remember, the recovery letter comes to the post office every other day, this is done for security purposes.

Also, if the account was linked to a Google account, try signing in with that account.

comments: author: michael_lynch
body: I'll have her try, thank you!


author: michael_lynch
body: this worked, she's good to go, thank you again!


Tags: bitbucket-cloud

cloud
Problem: "Someone has already added that key as an access key to a repository."
Asked by camurali:

Hello,

I can't add ssh key to my account settings.

Check result below:

$ ssh -Ti \~/.ssh/id_rsa.pub git@bitbucket.org  
authenticated via ssh key.

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


Answers:
author: Caroline R
body: Hi, [@camurali](/t5/user/viewprofilepage/user-id/4810585), thank you for reaching out to Atlassian 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: ?lhan Mihaylov
body: This is just a terrible design. If someone knows my public SSH key can simply add it to an empty repository and this will prevent me using my SSH forever on BitBucket. For someone having their SSH key added to lots of places, changing the key is not that simple. One of the worst nonsense I've ever seen.


author: Mikael Sandberg
body: Hi [@camurali](/t5/user/viewprofilepage/user-id/4810585),

Welcome to Atlassian Community!

A ssh key can either be added your your account, or it can be added to a specific repository. You cannot add the same key to both your account and on a specific repository. So, you would either check all your repositories and remove your key from there, or generate a new ssh key and add it to your account.

comments: author: camurali
body: I have too many repositories. How can I find out which repositories the ssh key is in?


author: Mikael Sandberg
body: Unfortunately there is no centralized way to find which repository your key is associated with. So if you do not want to check all your repositories your option is to create a new key and add that one to your account.


author: camurali
body: Can I get help if I create a support ticket for this issue?


author: Mikael Sandberg
body: I have notified the support team, they might be able to run something on the backend to find the repository for you.


author: camurali
body: Thank you. Also how can i find out the check result of the support team?


Tags: atl-rvw

bitbucket-cloud

cloud
update to 2.0.5.7 on Mac 10.7.5 causes source tree to not start
Asked by brody bernardi:

an update from 2.0.5.2 to 2.0.5.7 on Mac 10.7.5 causes source tree to not start. The app won't start at all now.

Can I go back to 2.0.5.2?


Answers:
author: rrudnicki
body: Hi Brody,

You just need to uninstall the currently version and install the old version with no problems as long you don't clear preference, the settings should be still there.

Regards,

Renato Rudnicki


Tags: mac

update