youngmon/atlassian-qna huggingface dataset:
Can someone please run garbage collection on remote repository?
Asked by jbloom512:

Hello.

My "models" repository below is at 3.85 GBs. I have run gc locally to reduce the size but have not seen it reduce in bitbucket.

Can someone please run gc on the remote repository to reduce the size?

Thanks!


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

I ran a git gc on the repository you mentioned, its size is 1.4 GB now. Does this agree with the size of your local repo?

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora

comments: author: jbloom512
body: Looks much better!! Thank you so much!!


author: Theodora Boudale
body: You are very welcome, please feel free to reach out if you ever need anything else!


author: Nic Brough -Adaptavist-
body: Not directly, we're not Atlassian support, and although they are here and may spot this question, they might well not see it either. Also, you've not said which Bitbucket it is, so they'd struggle to find it too.

I would look at two things:

* You can do some size reduction yourself, with a BFG tool - see <https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html>
* Raise this request with support directly over at <https://support.atlassian.com/contact/#/> Select "Technical Issues and Bugs" to get it routed to the support team

comments: author: jbloom512
body: Thanks! I was not able to open a support ticket. When I go the route of "Technical Issues and Bugs", it simply asks:

Are you having an issue with Bitbucket workspace invitations?  
Which I am not.  
I've seen several posts in this forum similar, where they can't run gc on the remote repository and someone will run it for them. I'm asking for the same thing to be done for me.  
I've run gc locally and drastically reduced the size. Now i just need the same done remotely.  
Is there no other way to do this? Again - I did try to open a ticket but there was no option for running gc.


author: Nic Brough -Adaptavist-
body: Ok, I'm afraid you need Atlassian support to do this, so you need a support request. You probably need to cheat and answer "yes" to the question about invites if you are on the free or $10 users licence.


Tags: bitbucket-cloud

cloud
Not excluding dev deps?
Asked by Josh:

When this pipe runs it is still packaging up the dev dependencies. Is this a known issue?


Answers:
author: Igor Stoyanov
body: Hi [@Josh](/t5/user/viewprofilepage/user-id/4552785) . Thanks for your question. Please provide us with more details about your case:  
pipeline configuration, logs, etc.  

Regards, Igor.


Tags: bitbucket-pipelines

cloud

lambda
Where to gain admin rights of bitbucket (already Atlasian org+site admin)
Asked by Owais Aziz:

Hello,  

I just got a new role at our company atlasian, Org+site administrator but the problem is I was unable to browse bitbucket admin panel maybe I was unable to find it, where can I give myself full rights to our org bitbucket cos when eve I go to bitbucket its showing blank for me unable to see org data there which is thereby users but as an admin I don't have access to it help plz


Answers:
author: Caroline R
body: Hi, [@Owais Aziz](/t5/user/viewprofilepage/user-id/4552819)! Welcome to the community!

I checked your Bitbucket account and confirmed you don't have access to another workspace besides yours.

In this case, in order to access your company's workspace, you need to ask one of the current admins of this workspace to invite you. They can add you to the admin group, this way you will have admin access over this workspace.

They can follow the next steps to add you to the admin group:

* Access the company's workspace \> Go to **Settings**

* Access **User groups**

* Open the group they want to add you to

* Click **Add Member**

* Inform your email and click **Confirm**

After that, you should receive an email to accept the invitation.

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Owais Aziz
body: thanks


author: Caroline R
body: You're welcome, [@Owais Aziz](/t5/user/viewprofilepage/user-id/4552819)!

I'm glad to help! :)  
Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How do you configure BitBucket cloud to require pull requests to link to an open JIRA issue
Asked by Dan Engel:

I am exploring Atlassian tools for my company, as a possible option to our own current SCM/issue management tool set. One of the features our current integration contains, which we don't want to sacrifice, is the ability for the SCM tool to require that the commit is connected with at least one open issue ID in the issue management tool.

I know that BitBucket cloud integrates with JIRA cloud, such that a JIRA issue will quickly identify branches and pull requests connected with a given JIRA issue by searching for the ones whose names start with that issue ID.

But how do you take this one step further and prevent the ability to merge a pull request whose name does not start with a valid JIRA issue ID, or (better), whose associated JIRA issue is not in a particular state?

Any help/insight is appreciated.

(Yes, I know you can restrict /who/ can merge pull requests, so that you could just train them all to not merge PR's without open JIRA issues. That's not what we want; there's got to be a way to make it work the way I describe.)


Answers:
author: Caroline R
body: Hi, [@Dan Engel](/t5/user/viewprofilepage/user-id/4313689)! Welcome to the community!

Currently, we do have an option to enforce the use of Jira Issue Keys on commit messages. In order to enable this feature, you can follow the next steps:

* Open the repository you would like to change

* Go to **Repository Settings** \> **Links**

* Enable the "**Require issue keys in commit messages**" option

Once enabled, Bitbucket will only accept pushes to your repo if the pushed commit message contains an issue key.

For now, it is not possible to enforce the usage of Issue Keys strictly on Pull Requests, this is only used in commit messages. However, we already have a Feature Request to make it possible to enforce this behavior on Pull Requests:

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

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.

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

jira
[firebase-deploy] Support specifying the functions runtime engine config through firebase.json
Asked by mark:

The firebase CLI added support for specifying the runtime engine for functions through the firebase.json instead of the package.json: <https://github.com/firebase/firebase-tools/pull/2241>

It appears that the firebase-deploy pipeline currently doesn't support this feature and at the moment defaults to NodeJS 12.


Answers:
author: Oleksandr Kyrdan
body: Hi [@mark](/t5/user/viewprofilepage/user-id/4552640)

Thank you for your question!

We'll investigate this feature and notify you.

Cheers,  
Oleksandr Kyrdan


Tags: bitbucket-pipelines

cloud

deployment

firebase

google
Bitbucket pipeline reuse source code from previous step
Asked by Edgar Khimich:

[@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   
If in my script in the first step I'm doing:

```
- git clone -b develop git@bitbucket.org:project/my-android-client.git ./../androidClient
```

after saving it to the artifacts:

```
artifacts:
  - ./../androidClient
```

it doesn't save it to artifacts   

Is it possible to reuse the already cloned project in the first step


Answers:
author: Theodora Boudale
body: Hi [@Edgar Khimich](/t5/user/viewprofilepage/user-id/3446033),

The reason that the clone directory is not saved in artifacts is that it is outside BITBUCKET_CLONE_DIR:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/>

You are cloning the repo in ./../, which is outside the clone directory of the repo where Pipelines is running. Only files in BITBUCKET_CLONE_DIR can be defined as artifacts, so what you can do here is clone the second repo inside BITBUCKET_CLONE_DIR

```
- git clone -b develop git@bitbucket.org:project/my-android-client.git androidClient
```

and then define the artifact as follows:

```
artifacts:
  - androidClient/**
```

Kind regards,  
Theodora

comments: author: Edgar Khimich
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Thank you


author: Theodora Boudale
body: You are very welcome [@Edgar Khimich](/t5/user/viewprofilepage/user-id/3446033).

Just a heads up, I forgot to mention yesterday, I moved your post to a separate question because the topic and your use case are a bit different than the original post where you replied.

Please feel free to let me know if you need anything further!

Kind regards,  
Theodora
I stopped receiving emails
Asked by Carlos Rodero:

hello, I had a problem with my email server and I stopped receiving emails, I believe the system must have blocked because it didn't find my email during the failure period. My email: \<email_removed\>


Answers:
author: Theodora Boudale
body: Hi Carlos,

Your email was indeed in a suppression list. It looks that Bitbucket attempted to send you an email while there was a problem with your email server, there was a hard bounce response, and your email was placed in a suppression list.

I went ahead and removed it, so you should be able to receive Atlassian/Bitbucket emails now.

Please feel free to let me know if things are ok and if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
BitBucket not accessible
Asked by netinfluence:

I try to access to my bitbucket server this morning : <https://stash.netinfluence.ch> and I have an error.

It's seems to be a problem with crowd, <http://crowd.netinfluence.ch>, I have a message to renew the maintenance, but I can't renew for self hosting.

Is it possible to start Bitbucket without Crown ? For accessing to my repository...

I wan't to migrate to jira and bitbucket in cloud, is it possible to migrate my self hosted bitbucket in cloud ?


Answers:
author: Christian Glockner
body: Hi,

You can start Bitbucket Server whether Crowd is available or not, but if your user is authenticated via Crowd you won't be able to log in. You'll need to use the Lockout Recovery procedure in Bitbucket Server (see <https://confluence.atlassian.com/bitbucketserver/lockout-recovery-process-776640158.html>) to be able to log in, then you can remove or disable your Crowd directory in Bitbucket Server.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

migration-customer-care

server
Repos gone
Asked by PascalDutch:

I previously had an account for bitbucket, before it merged with all the other atlassian stuff. Today I wanted to log in with that mail adres and it asked me to provide a name and username. I thought it was weird but I did it anyway, only to discover that my repos were gone. How do I get them back?


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

Based on your description, it sounds like you might have attempted to log in with an email alias of the account, which would prompt you to create a new account.

Log-in to Bitbucket is possible only with the primary email address, email aliases are used for Git aliasing only, so you'll need to log in with the primary email of the account.

That being said, I can see in our system that there is a Bitbucket Cloud account with the same email address as your community account, it was created a few years ago and it also owns some repos. Can you access this account and is it the one you are looking for?

Kind regards,  
Theodora

comments: author: PascalDutch
body: Hi,

Thanks for your reply. No, when I go to bitbucket.com and log in with the email address linked to this account, I go to a new, empty account. Not the previous account with the repo's you are talking about.

Edit: triggered by your reply, I tried some other mail addresses and discovered that my account was registered to another account! So I got my repo's back, thanks for your help!


author: Theodora Boudale
body: Thanks for the update, it's good to hear that you found the account!

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud
default branch for git push command in README deprecated
Asked by Enno:

After creating a new empty repo on Bitbucket.org, the git push command in README defaults to the deprecated branch 'master' instead of 'main'. Should this be changed to reflect the new default? {#toc-hId--1216028530}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Answers:
author: Caroline R
body: Hi, [@Enno](/t5/user/viewprofilepage/user-id/4551747)! Welcome to the community!

Before we start, I'd like to confirm that I've properly understood what is happening on your side. Feel free to correct me in case I have misunderstood something here.

Apparently, when creating a new repository and adding a value to the "Default branch name" field, the repository is still showing "master" on the readme page:

    git remote add origin git@bitbucket.org:workspace/repository-name.gitgit push -u origin master

Is that correct? If that's the case, we already have an open bug to update the branch name to the one that was informed during the repository creation:

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

Our development team will post an update on the bug report when this is fixed. If you are not familiar with our Bug Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email on any updates and also select the **This affects my team** link to indicate you are affected by this issue.

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

Kind regards,  
Caroline


author: Enno
body: Yes, Caroline, this is indeed a duplicate of <https://jira.atlassian.com/browse/BCLOUD-21019> and thus can be closed/merged. Thank you for confirming!


Tags: bitbucket-cloud

cloud
What happen if I left "keep this workspace private" tick box untick in workspace setting?
Asked by Aruna Virajith Chandrasekara:

What happen if I left "keep this workspace private" tick box untick in workspace setting?


Answers:
author: Caroline R
body: Hi, [@Aruna Virajith Chandrasekara](/t5/user/viewprofilepage/user-id/4551698)! Welcome to the community!

This is a workspace setting. If you set it to private, the workspace won't be visible to anyone who doesn't have explicit access to it. So, when someone who doesn't have access to this workspace tries to access it, they will see a page like this:

![Screen Shot 2021-09-10 at 4.48.37 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/159870i246FA3F222B22B9C/image-dimensions/523x246?v=v2 "Screen Shot 2021-09-10 at 4.48.37 PM.png")

However, if you remove the "Keep this workspace private" option from your workspace \> Settings, if someone who doesn't have access to this workspace tries to open it, they will see a page like this:

![Screen Shot 2021-09-10 at 4.51.19 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/159871iB206B4AA375BCD8B/image-size/large?v=v2&px=999 "Screen Shot 2021-09-10 at 4.51.19 PM.png")

With that said, even if the workspace is not set as private, if the repositories are private, only users who have access to these repos will be able to access them.

In case you would like to test it, you can open an incognito window and try to access your workspace. If you mark your workspace as private and you try to access it from a browser in incognito mode, you should see the "You were never here" message.

I hope this helps, but do let me know if you have any questions.

Kind regards,   
Caroline

comments: author: Yalcin Yilmaz
body: What is the purpose of this? Why would I want to make this "not private", if all it does is to show that this workspace exists, but nobody can see a repo inside?


Tags: bitbucket-cloud

cloud

workspace
Where are my old mercurial repos?
Asked by djpbarry:

It's just occurred to me that I may have left some mercurial repos on bitbucket when support for them ended last year - is there anyway they can be accessed or have they been deleted?  

Any help would be much appreciated.


Answers:
author: Theodora Boudale
body: Hi everyone,

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.

This was announced in community:

* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

and on our blog:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

Kind regards,  
Theodora


author: Theodora Boudale
body: Hi [@djpbarry](/t5/user/viewprofilepage/user-id/4551050),

I'm afraid that it is no longer possible to access Mercurial repositories on Bitbucket website, however, our support team can provide you with a copy of the Mercurial repos that were owned by your Bitbucket account.

I went ahead and opened a support ticket for you, using the email of your community account. You should have received an email with a link to this support ticket, you will get a response to that ticket from one of our engineers. Just in case you haven't received an email with a link to the ticket, please feel free to let me know and I can post the link here (the support ticket will be visible only to you and Atlassian staff, no one else can access it even if they have the URL).

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

mercurial
Can not Download SourceTree Application
Asked by pakuqi:

Hi, I want to use SourceTree of Windows.

My PC is Windows7 SP1

I treid install sorucetree. but happened download error.

install log is below  
-------------------------------------------------------------

Result of checks for command 'DotNetFX45\\dotNetFx45_Full_setup.exe' is 'Bypass'  
'Microsoft .NET Framework 4.5 (x86 and x64)' RunCheck result: No Install Needed  
Launching Application.  
URLDownloadToCacheFile failed with HRESULT '-2147024891'  
Error: An error occurred trying to download 'http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application'.

-----------------------------------------------------------------

I input URL 'http://downloads.atlassian.com/software/sourcetree/windows/SourceTree.application' on the Browser.

But happen Error. Erroe Code is 407

Seems to be the proxy requires authentication, how do I deal with it?

regards.


Answers:
author: pakuqi
body: Hi, Steve

I succeed install Source Tree to my PC.

I'm very happy, thank you very much


author: stevestreeting
body: Unfortunately Microsoft's ClickOnce installer tech doesn't work via proxy servers that require authentication other than NTLM. If you want to try a stand-alone installer, you can find a thread with the link here: [Is there an offline installer for Windows version of SourceTree? - Atlassian Answers](/questions/149591/is-there-an-offline-installer-for-windows-version-of-sourcetree)
git pull -s subtree
Asked by flexcoding:

Hi,

is it possible in SourceTree to perform this command?

git pull -s subtree remote_branch_name master


Answers:
author: stevestreeting
body: The only way to do it right now is to use a Custom Action (only available on Mac right now). Why do you need this alternate strategy?


author: flexcoding
body: Thanks, I tried that out and it works for me although I have to rely on conventional names for the remote branch. I need this command because I want to test if the subtree strategy is working out for including an assets repo into the code repo for out projects. This way designers can handle all assets in their own repository without having the chance to accidentally corrupt the code in any way. I know I could also use a submodule for that but subtrees seem to be not so complicated and need less commands to work in both directions.
"Stage selected lines" disabled for new files, but no "intent-to-add" available by default?
Asked by lkraav:

Hi

I would like to stage only parts of a new file. "Stage selected lines" is disabled in right-click menu, but for a new file Stage Hunk == Stage File and it isn't what I want.

There's no "intent-to-add" command by default. Is "Custom Actions" the way to go here or what is the SourceTree-based process supposed to look like for this?


Answers:
author: stevestreeting
body: You basically have to add the entire new file to the index first, then select the lines you \*don't\* want to be in the first commit of this file and click Unstage Selected Lines.

comments: author: lkraav
body: Thanks, I'll try this at next opportunity


author: Ken
body: This doesn't seem to work, at least as of SourceTree 2.0.5.2. I can add an untracked file to the index, but even when I select specific lines from it, SourceTree only shows the button to allow me to un-stage the entire file.