youngmon/atlassian-qna huggingface dataset:
Repo size not reduced.
Asked by Sang woo Ham:

Hi, my private repo {repository name removed due to privacy reasons} (is fork of another repository and I have both write access) shows 2.9GB size.

I delete all commit history, files, git gc, but still I don't see any change in repo size though the local repository size .5 GB.

Is there anybody knows what cause this.?

Thanks


Answers:
author: Caroline R
body: Hi, [@Sang woo Ham](/t5/user/viewprofilepage/user-id/4736456), welcome to the community!

I ran the GC against your repository and managed to reduce its size. Just to give you some context around the reason your remote repository size didn't change after you removed commit history and files, it happened because the remote repo still had these old references, so the GC is required on the remote repository as well to clean up any old references you have removed.

We have a feature request to allow users to mark repositories for git GC, as you can check here:

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

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Get build-wrapper error after running bitbucket pipeline
Asked by fatma_elbehi:

Hi Team,

I am working on maven project and trying to integrate sonarCloud I received a failed pipeline with the following error

![Screenshot_1.png](/t5/image/serverpage/image-id/180748iDDC3DE526E16B979/image-size/large?v=v2&px=999 "Screenshot_1.png")

I need you help please asap!

Best,

Fatma


Answers:
author: Norbert C
body: Hi Fatma,

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

I would like to inform you that unfortunately SonarCloud is unsupported on our side as it wasn't developed by Atlassian and we're not familiar with this product. In case you wish to receive support from this application, we would like to suggest you to contact SonarQube for support.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
Can't create pull requests, web page is loading indefinitely
Asked by V-ampire:

![1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/180746i43EEDEAF12E45D9C/image-size/large?v=v2&px=999 "1.jpg")When I try to create PR this happens - indefinitely loading


Answers:
author: V-ampire
body: [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) I tried Chrome and Firefox - the same results. No chanches happened after clearing cache.


author: Brant Schroeder
body: [@V-ampire](/t5/user/viewprofilepage/user-id/4735007) Welcome to the Atlassian community

What browser are you using? Have you tried clearing your cache? Have you tried a different browser?

comments: author: Brant Schroeder
body: [@V-ampire](/t5/user/viewprofilepage/user-id/4735007) are others having the same issue?


author: V-ampire
body: [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) No, but I working from home and my colleagues are not next to me


author: Brant Schroeder
body: [@V-ampire](/t5/user/viewprofilepage/user-id/4735007) since you are on cloud I would suggest submitting a support request to Atlassian here: <https://support.atlassian.com/contact/> They can check your account and make sure that there is nothing wrong.

I would also suggest that you make sure you do not have an anti-virus or firewall program preventing connectivity. I would suggest trying on a different computer or on a different network if possible.


Tags: bitbucket-cloud

cloud
At bitbucket my repository size shows large as over 4.19 GB, I have deleted many of branches
Asked by Ritu:

At bitbucket my repository size shows large as over 4.19 GB, I have deleted many of branches still show warning not to push, I have run gc, gc --aggressive, remove multiple branches still my repository size is not reduced


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

I found in our system one repo over the 4 GB limit from the ones you have access to. I ran a git gc on it, and its size is 550.5 MB now. Does this agree with the size of your local repo?

We have a feature request to allow users to run a git gc on the remote repos themselves:

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

You can add your vote in that feature request and add yourself as a watcher if you'd like to get notified via email on updates.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot find Pull request merge checks option in project settings for PR approval restrictions
Asked by Kunal Modi:

In reference to the article, <https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html>

It was mentioned in the article that it is possible to enable merge check at project level which is then inherited by all the repositories in that project.

But in my account, I was unable to find any option for merge checks in the project settings. I have attached the screenshot of the same. Also, my account is a premium account so no doubt of any features missing.![Screenshot 2022-01-31 105945.png](/t5/image/serverpage/image-id/180683iE3A77F3349F0C51C/image-size/large?v=v2&px=999 "Screenshot 2022-01-31 105945.png")

Please help me in this matter. Or if I am doing something wrong then please guide.

Thanks!


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

The link you have shared is related to Bitbucket Data Center and Server. By the screenshot you added, I understand you are working on Bitbucket Cloud, is that correct?

If that's the case, currently merge checks are only available at the repository level on Bitbucket Cloud. So, in case you want to configure this, you can access your repository \> go to **Repository settings** \> **Branch permissions**.

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.

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

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
How to fix Git bash not working ?
Asked by Mohammed Kasim:

It displays ""Error: Could not fork child process: Resource temporarily unavaila""


Answers:
author: Vishwas
body: Hey [@Mohammed Kasim](/t5/user/viewprofilepage/user-id/4733521)

Welcome to Atlassian Community !!

This error usually means too many process open in the system.

I hope you are on windows machine, please take a look at this stack overflow guide and see if the fixes mentioned would solve for you <https://stackoverflow.com/questions/45799650/git-bash-error-could-not-fork-child-process-there-are-no-available-terminals/48123795>

Regards,

Vishwas


Tags: git
How can I getting list of users for an organization in BitBucket?
Asked by Ahana Ambshri:

Hi,

I want to get the list of all the users in my organization using BitBucket API? All I can find on the internet is by using the teams.

"<https://api.bitbucket.org/2.0>/teams/${org}/members"

Since it's deprecated, I am not sure how I can get the list of users and personal repos they created using the organization ID.

I don't want to list the users in the specific workspace. I want to get information about personal settings for users (like ID not nickname, profile visibility, any public repo, etc).


Answers:
author: Emanuel Y
body: Hi [Pramodh M](https://community.atlassian.com/t5/user/viewprofilepage/user-id/3691224) is there a way to export a list of all the users in the user directory?


author: Ahana Ambshri
body: Hi Pramod,

Sorry, I think I should have framed my question better. I can get who the members are for a specific workspace, that's not my requirement. What I am looking for is to know whether people are creating any private/personal repos (not part of any workspace) within the organization. And if so, is there anything that is publically accessible.

I think I can list all the publicly accessible repo (be it in the workspace or in their private account) using <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-get>. Is there a way for me to know whether any snippets are public or not?

Just to be clear, when I say private/personal, I only mean repos they have created using the company's ID.


author: Pramodh M
body: Hi [@Ahana Ambshri](/t5/user/viewprofilepage/user-id/4734359)

Welcome to the Community!!

Here's the API to get the Users for Workspace

**List users for a workspace**

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-get>

**User Membership for a workspace**

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-member-get>

Thanks,  
Pramodh

comments: author: Pramodh M
body: > I don't want to list the users in the specific workspace. I want to get information about personal settings for users (like ID not nickname, profile visibility, any public repo, etc).

The above is not possible yet with Bitbucket

It's possible with Atlassian Access (For a managed account)


author: Ahana Ambshri
body: Can you please elaborate a bit on this as this is what I think I want.

Also if possible, can you please go through my previous comment where I explained my requirement a little better, maybe that would help you understand my requirements.


Tags: bitbucket-cloud

cloud
Using SSH instead of HTTPS and AppPasswords
Asked by ChuckieAJ:

Do I understand this correctly?

If I:

1. Use the SSH URL link to the source control project.
2. Use a public / private key combination (registered with BitBucket).

In the above situation the requirement to use a AppPassword does not apply?

I know that from March 2022 it will not be possible to use your account password. Just wanted to be clear.


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

That is correct, when using basic authentication in Git over **HTTPS** , you will need to use Bitbucket [app passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/). However, if you are using the **SSH format** in your repository, you can continue to use your ssh key.

In case you would like to read more about how to change the remote URL to your repository (so you can switch it to SSH/HTTPS), you can access the following page:

* <https://support.atlassian.com/bitbucket-cloud/docs/change-the-remote-url-to-your-repository/>

And if you need any help to configure an SSH key, you can find more information here:

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

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

Kind regards,   
Caroline

comments: author: ChuckieAJ
body: Thanks [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) . Awesome!


Tags: bitbucket-cloud

cloud
What are ways to create custom hooks and to enable them in bitbucket?
Asked by Amulya K:

Developing custom hooks.

Need more inputs on creation and enabling bitbucket commit hooks.


Answers:
author: Pramodh M
body: Hi [@Amulya K](/t5/user/viewprofilepage/user-id/4734377)

Welcome to the community ?

Here are some references

<https://confluence.atlassian.com/bitbucketserver/using-repository-hooks-776639836.html#Usingrepositoryhooks-pre-receive>

<https://blog.developer.atlassian.com/beer-o-clock-stash-plugin-tutorial/>

<https://github.com/github/platform-samples/tree/master/pre-receive-hooks>

Thanks

comments: author: Amulya K
body: What language are supported for creating custom hooks? Is this only through java?


author: Phalguna
body: I'm following the below tutorial to install Atlassian Plugin SDK on WIndows

<https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-windows-system/>

When I click on the link [Download the latest version of the SDK](https://marketplace.atlassian.com/download/plugins/atlassian-plugin-sdk-windows) the page is not working.

Also I don't see any latest release on this SDK from the [versions history](https://marketplace.atlassian.com/apps/1210950/atlassian-plugin-sdk-windows/version-history)

I want to know if this is still supported from Atlassian, if not how should I get the Atlassian SDK downloaded to develop a Bitbucket hook?


Tags: bitbucket-server

server
How to maintain git cmd line experience with App passwords?
Asked by Psyberion:

I use only the linux command line on various machines using different local accounts, Some have a reduced set of software/commands available. However I can clone/push/pull with git using https with my account and memorable (but not short or simple) account password to my hearts content.

Now this needs to change because of the move to App passwords and it has raised some concerns:

I don't think I can set the App password to something memorable, I can only use the random one created for me by BitBucket. Writing the App password down on a piece of paper and carrying it from machine to machine isn't a great idea security-wise.

I could put the git commands along with the App passwords into script files and run those instead of the git commands directly, but then that leaves a plain text version of the App password on the machine. I'd need to do that on each machine when required. Plus if permissions need to be changed on the App password it would need to be revoked and recreated and the autogenerated password would change.

I believe that if I use SSH then I will need a key file? I don't have any way to put files on many of the machines, no disk or USB access. Writing the key down on a piece of paper and typing that into a file at each machine isn't really practical.

I have been keeping repositories on both BitBucket and GitHub, pushing to both as I haven't quite made up my mind which to use. If all else fails, perhaps this will be the final decider. Unless GitHub are doing something similar? In which case I guess I will just return to hosting repositories somewhere myself.

Any ideas or pointers gratefully received.


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

For HTTPS, one option is to make use of a credential helper that will store passwords (in this case an app password) encrypted.

If there is an SSH client in these machines, you can generate an SSH key pair for each machine from the command line, you can take a look here

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

and then upload each public key to your Bitbucket Cloud account. This way you will not have to manage passwords, as authentication will be made with the SSH keys.

Kind regards,  
Theodora

comments: author: Psyberion
body: Thanks Theodora,

I opted for the SSH route as that is available, it's a bit convoluted to get the public key to another machine to then upload to bitbucket, or manually type it in on another machine as these machines don't have a browser. But at least it's a one-off thing and then just works once set up. So I've gone with using SSH.


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

You're very welcome, it's good to hear that SSH works for you.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I'm trying to download bitbucket repo using powershell
Asked by chandra mouli:

I tried using

invoke-webrequest , invoke-restmethod and i passed Uri and the credential object, but i get 401 unauthorized. but when i try to access in browser i'm able to download the code.

any help is much appreciated.

Thanks

chandramouli


Answers:
author: Pramodh M
body: Hi [@chandra mouli](/t5/user/viewprofilepage/user-id/4733904)

Welcome to the Community!!

There is no API to download the Repo

You need git tool to clone the repo

Here's the Script to download the all repo in a project

<https://gist.github.com/eeichinger/babbdf99d8fe21fef8634d56f29defba>

Thanks,  
Pramodh


Tags: bitbucket-cloud

cloud
I want to be able to use Pages for Bitbucket Server
Asked by Mridula Menon (Product Knowledge Enablement):

Hi,

I am new to Bitbucket Pages. I want to be able to publish a static website.Is there a tutorial to learn this?

Can we use Jekyll Markdown and Mermaid?

TIA

Mridula.


Answers:
author: Brant Schroeder
body: [@Mridula Menon (Product Knowledge Enablement)](/t5/user/viewprofilepage/user-id/4733887) Welcome to the Atlassian community. Page is a feature available on bitbucket cloud. The tutorial can be found here: h[ttps://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/](https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/)

comments: author: Mridula Menon (Product Knowledge Enablement)
body: Thanks Brant for your reply, I checked the. But it didn't say if we can use Jekyll to create the pages.

So do we create pages in HTML instead of Markdown?


Tags: bitbucket-server

page

server
How to incorporate feedback from pull request
Asked by Atif Hassan:

Hi,

I am new to bitbucket. I tried to google it but unable to find exact answer for my question.

I created a feature branch. Made few changes in the feature branch then I pushed/committed all the changes from my local machine to Bitbucket feature branch on bitbucket.org. Then I created a pull request and added a reviewer.

My senior reviewed the pull request and added his code reviews/comments in the pull request.

Now I am stuck at this point how to incorporate changes which are mentioned by the pull request reviewer. Should I create another branch? I am totally stuck what to do next.

Please help me.


Answers:
author: Fadoua
body: [@Atif Hassan](/t5/user/viewprofilepage/user-id/4721428)

I guess that is the whole point behind having feature branches. So that any code change (reviewed) need to be made then pushed again and merged to the Master once it is approved of course.

All the best,

Fadoua

comments: author: Atif Hassan
body: Thank you for your reply. What I want to know is for example I created a feature branch named "feature-b2bapi". I created the pull request for "feature-b2bapi" branch". Reviewer reviewed my code and suggested few changes. Now what should I do? Should i create a new branch and incorporate the changes suggested in the pull request or should I make changes in the existing "feature-b2bapi" feature branch? Or is there any other best practice to make the changes in the code in order to incorporate the pull request review feedback?


author: Fadoua
body: From experience and best practice in my company is:

* Create a new branch after making the changes then push them to BB again

Best,

Fadoua


author: Ulrich Kuhnhardt _IzymesCo_
body: [@Fadoua](/t5/user/viewprofilepage/user-id/655791) [@Atif Hassan](/t5/user/viewprofilepage/user-id/4721428)

On top of what [@Fadoua](/t5/user/viewprofilepage/user-id/655791) suggested, you can keep your local feature-b2bapi branch, make the suggested changes in your IDE and then

$ git commit -am"implemented review changes, or any commit comment"

$ git push

This way the existing pull request source branch (your feature branch) gets updated in Bitbucket and the pull request will reflect your updates. Your reviewer will be notified and re-review your changes and approve + merge.

If you create a new branch for every update, you would need a new pull request every time. IMO this would create unnecessary overhead.

Let me know if that works for you.

Best, Ulrich


Tags: bitbucket-cloud

cloud

pull-request
How do I request my online repositories be compressed?
Asked by ChuckieAJ:

As the subject says ...

Thanks.


Answers:
author: Caroline R
body: Hi, [@ChuckieAJ](/t5/user/viewprofilepage/user-id/3394330)! Thank you for reaching out to Atlassian Community.

I found the repository that was showing 1GB on your workspace, so I ran the GC against this repo and managed to reduce its size. Just to give you some context, the GC runs periodically on the server, so unless the auto GC has not been run on the server and you reach the repository size limit, the GC is not mandatory.

I also would like to share with you that we have a feature request to allow users to mark repositories for git GC, as you can check here:

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

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

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

Kind regards,  
Caroline

comments: author: ChuckieAJ
body: Thanks [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) . I have just added myself as a watcher on that ticket and upvoted it.

Thanks for running GC on the repro in question.


author: Pramodh M
body: Hi [@ChuckieAJ](/t5/user/viewprofilepage/user-id/3394330)

To compress means here with reference to git is to optimise the size of the repository

What you can do is perform a git gc from local and force push the repo to remote repository

Here's the guideh ttps://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/

Thanks,

Pramodh

comments: author: ChuckieAJ
body: Thanks. I have run the command locally. But historically I find the online repository does not actually compress.

Also, when I go to "Push" via SourceTree the "Force Push" is disabled.


author: ChuckieAJ
body: I since found out how to Force Push by activating the setting. So I have done this now. It now says it is 1GB. I would like a member of staff to perform their own compact for me at their end of my projects and let us see if it reduces more. Thank you.


author: Pramodh M
body: Hi [@ChuckieAJ](/t5/user/viewprofilepage/user-id/3394330)

It only optimises the way git stores th data if they do it from their end, actually files should be removed inorder to reduce the size!!

You need to create a support ticket in order to let them know on the request


author: ChuckieAJ
body: But this is the thing - I understood that free users can't raise support tickets any more. I know for fact that when Atlassian staff compress my projects they dramatically reduce in size. Yet when I had the email about being unable to raise support tickets this was understandably an area of concern for me.


author: Pramodh M
body: Hi [@ChuckieAJ](/t5/user/viewprofilepage/user-id/3394330)

I have tagged the question to Atlassian, they will be in touch with you soon.


author: ChuckieAJ
body: Awesome.


Tags: atl-rvw

bitbucket-cloud

cloud
How do I add node to Sourcetree application path in Yosemite so that my Git hooks will run?
Asked by Cody Schneider:

I used to add the node path to launchd.conf, as referenced in one of the links I found in this question:

[SourceTree : Hook failing because paths don't seem to be set correctly](https://answers.atlassian.com/questions/140339)

With OSX 10.10 Yosemite it seems that launchd.conf and \~/.MacOSX/environment.plist solutions are deprecated. I've tried various other plist solutions and none seem to add the path in such a way that Sourcetree will pick it up. The only thing that works is opening Sourcetree from a terminal window.


Answers:
author: jazz-test
body: Same issue, I feel like I'm missing something here. I even added the correct path (/usr/local/bin) to .zshenv so that it would get picked up by the noninteractive session and it's still not working.