youngmon/atlassian-qna huggingface dataset:
Not receiving bitbucket invitation emails
Asked by Srinivas_Karlapudi:

Not receiving invitations to email to add repositories. I have checked my spam folder, but it is empty. Please help.


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

Your email address was in one of our suppression lists with the message

```
550: 550 5.4.1 Recipient address rejected: Access denied.
```

This usually occurs when an invitation is sent before the email account is operational and we receive a hard bounce response from the recipient's mail server. The hard bounce informs us that the email does not exist and in this case, it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed your email from the suppression list, could you please ask one of your admins to resend the invitation now?

A new invitation needs to be sent, as the previous ones were dropped.

Kind regards,  
Theodora

comments: author: Srinivas_Karlapudi
body: Thanks! [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) I'm able to receive the invitations to add repositories.


Tags: bitbucket-cloud

cloud
My Bitbucket cloud size is different than my local repo
Asked by Kia Davari:

Hi there, I have pushed a large folder to my bitbucket last week so it reached over 4GB. after reading this link <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/> I was able to undo the last push. After that, I pushed another large folder accidentally and the repo size got \~2GB. Once I realized it, I deleted that large folder, deleted its branch, and everything related to that. However, after lots of effort bitbucket repo still shows 2GB. I also tried to rewrite history using BFG to see if it helps reduce the size of the repo but it didn't work either and my local repo size is much less than my bitbucket cloud.  

Could you help me with that? Will \`git gc\` also help my case?  
Thanks


Answers:
author: Theodora Boudale
body: Hi [@Kia Davari](/t5/user/viewprofilepage/user-id/4907257) and welcome to the community.

I found the repo that was over 2 GB, I ran a git gc on it, and its size is 188.3 KB now.

Does this agree with the size of your local repo?

I'm afraid that users cannot run a garbage collection on remote repos at the moment. We have a feature request for that in our issue tracker that you can vote for and add yourself as a watcher if you'd like to get notified on updates:

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

Kind regards,  
Theodora

comments: author: Kia Davari
body: Hi Theodora,  
Thank you so much. I've been struggling with this issue for 2 days and did everything to rewrite the history but none of them worked. Should I reach out to you again if it happens again? is there any way that I can clear the history?  
BTW, not sure the repo size now is the same as what you see (188.3 KB). I just cloned the repo and the \`size-pack\` of \`git count-objects -v\` is 97.09 KB. is that right?  

Thanks again,

Kia


author: Theodora Boudale
body: Hi Kia,

You are very welcome!

The automated garbage collection will get triggered if the repo size is over the 4 GB limit and you undo the last push, as per our documentation.

It will not get triggered if the repo size is below the 4 GB limit, or if it is over the limit but you perform any action other than git reset.

If you delete a branch with large files or rewrite history with BFG, you will need to contact us to run a git gc on the repo. You can either post a question in community or create a support ticket if the repo belongs to a workspace on a paid billing plan. You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

If the repo has multiple branches then the difference in \`git count-objects -v\` is expected, as when you clone a repo, the main branch is pulled only.

Kind regards,  
Theodora


author: Mikael Sandberg
body: Hi [@Kia Davari](/t5/user/viewprofilepage/user-id/4907257),

Welcome to Atlassian Community!

I have notified the Atlassian support team that is on community and they should be able to help you.

comments: author: Kia Davari
body: Hi, Mikael. yes, they are doing so. Thank you so much


Tags: atl-rvw

bitbucket-cloud

cloud
How do I get list of "active" branches for a repo using the REST API?
Asked by Salgueiro, Flavio:

Using GET /2.0/repositories/{workspace}/{repo_slug}/refs/branches, I am getting a list of all the branches for a repo.

I would like to filter this list somehow in the same manner that the Bitbucket UI does so as not to have to iterate through 1600+ branches.

Is there a way to to use the filter objects to obtain a list of branches for a repo that have not been merged?


Answers:
author: o_kyrdan
body: Hi [@Salgueiro, Flavio](/t5/user/viewprofilepage/user-id/3709102)

Thank you for your question!

Looks like this type of filtering is not supported by Bitbucket API.

Please look into this public [issue request](https://jira.atlassian.com/browse/BCLOUD-14022) and vote for it.

Best regards,  
Oleksandr Kyrdan


Tags: api

bitbucket-cloud

cloud
Configure Hooks
Asked by SKumar M:

We are trying to configure Hooks to validate commit which require to be associated with valid Jira issue. Commits required valid JIRA ID.

Is this hook can be added out of the box at JIRA/Bitbucket or need a new plug-in to be purchased from market place?


Answers:
author: Robert Giddings [Adaptavist]
body: Hi [@SKumar M](/t5/user/viewprofilepage/user-id/3493643) ,

If you have ScriptRunner for Bitbucket you can achieve what you are looking to achieve using the "Require Commits to be Associated with a Valid Jira Issue" Built-In Pre-Hook, as documented here: <https://docs.adaptavist.com/sr4bib/latest/features/script-pre-receive-hooks/built-in-pre-receive-hooks/require-commits-to-be-associated-with-a-valid-jira-issue>

Kind regards,

Robert Giddings,

Product Manager, ScriptRunner for Bitbucket


author: Aron Gombas _Midori_
body: In addition to Craig's tips, our app called [Better Commit Policy](https://marketplace.atlassian.com/apps/1214430/better-commit-policy-for-bitbucket?hosting=datacenter&tab=overview) also solves this with high level configurability.


author: Craig Nodwell
body: It can be done but it's a bit of work and there are different approaches.  
This is something worth purchasing a plugin over, but you should probably look at one that will give you this as well as other automation and configuration management features. Re: Scriptrunner for BitBucket Server will satisfy your current ask and a whole host of other features.

Have a review of this article:

[how-to-create-a-simple-hook-in-bitbucket-server](https://confluence.atlassian.com/bitbucketserverkb/how-to-create-a-simple-hook-in-bitbucket-server-779171711.html)

comments: author: Craig Nodwell
body: Control Freak would be another one.


Tags: bitbucket-server

server
Is there a way to enable SAML SSO in Bitbucket using Azure AD?
Asked by Nathan Kracht:

We are currently looking into solutions that can enable SSO with SAML using Azure AD.

Bitbucket Cloud is currently under review. What options do we have to enable SSO?


Answers:
author: Patrik S
body: Hello [@Nathan Kracht](/t5/user/viewprofilepage/user-id/1719823) ,

Thank you for reaching out to Atlassian Community!

The SSO/SAML single sign-on is available when you [subscribe to Atlassian Access](https://www.atlassian.com/enterprise/cloud/access), and is configured at your Atlassian Organization level, meaning that once you have it setup, it will be valid for all the Atlassian Cloud products that are part of your organization, including Bitbucket Cloud.

The details on how to have it enabled are outlined in the documentation below :

1. [Configure SAML single sign-on with an identity provider](https://support.atlassian.com/security-and-access-policies/docs/configure-saml-single-sign-on-with-an-identity-provider/)
2. [Enforce SSO on an Authentication Policy](https://support.atlassian.com/security-and-access-policies/docs/understand-authentication-policies/)

In the #1. documentation you will find links to detailed instructions for the most popular identity providers, and that list also includes Azure AD, where the link is the following :

* <https://docs.microsoft.com/en-us/azure/active-directory/active-directory-saas-atlassian-cloud-tutorial>

Hope that helps! Let me know if you have any questions.

Thank you, [@Nathan Kracht](/t5/user/viewprofilepage/user-id/1719823) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Clear Caches Pipe does not work
Asked by Antoni Florit:

We are using Clear Caches Pipe to clear the "node" cache and the "cypress" custom cache so every run we do the step with Bitbucket's Clear Caches Pipe script ends with a 404 error with the following message:

? Failed to retrieve caches: 404 {"type": "error", "error": {"message": "Resource not found"}} <https://api.bitbucket.org/2.0/repositories/thebellhop/ess-front/pipelines-config/caches/?page=1&pagelen=100>  
The step with the script is as follows:  

```
    - step: &clear-cache
```

```
        name: delete cache if changes in the build dependencies
```

```
        script:
```

```
        - pipe: atlassian/bitbucket-clear-cache:3.1.1
```

```
          variables:
```

```
             BITBUCKET_USERNAME: $BITBUCKET_USERNAME
```

```
              BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
```

```
             CACHES: ["cypress", "node"]
```

```
        condition:
```

```
          changesets:
```

```
            includePaths:
```

```
             - package.json
```

Can anyone help us?


Answers:
author: Patrik S
body: Hello [@Antoni Florit](/t5/user/viewprofilepage/user-id/4526571) ,

Thank you for reaching out to Atlassian Support.

The error you are receiving is from one of the API calls the pipe is doing behind the scenes, where it gets all the caches from the repository. A 404 response from that API either means that the repository does not exist (which is not the case here), or the credentials being used to authenticate does not have access to it.

So could you please confirm if the bitbucket username you set as the variable $BITBUCKET_USERNAME is correct, and if that user has access to the repository where the pipeline is running ? Also, make sure this is the bitbucket username of the account, not the e-mail address. You can check the username going to the account's personal settings <https://bitbucket.org/account/settings/>

Additionally, please make sure the App Password you are using has the required permissions. To narrow down if the issue if with the permissions of the app password you are currently using, you can try creating a new app password with full permissions checked and test if using it the pipe completes successfully.

Hope that helps! Let me know if you run into any issues.

Thank you [@Antoni Florit](/t5/user/viewprofilepage/user-id/4526571) ,

Kind regards,

Patrik S


Tags: bitbucket-cloud

cache

cloud
is there any api that list out all the commits against a tag or against a sprint?
Asked by sourav karmakar:

I want to list out all the jira commit from different projects under same workspace for a particular sprint. as of now I am maintaining a changedlog.md file to do so manually. is there any api available by which I can get list of all commits jira no for a tag? or a sprint?

is there any api for git log?

1.if so how then whats the endpoint and payload and header

2. without access token how can I get that?(I have app password)


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

> is there any api for git log?

There is an API endpoint that will return all commits of a repo (like git log)

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-get>

If you have generated an app password for your Bitbucket account, you can use it with your Bitbucket username for authentication.  
You can find your Bitbucket username here: <https://bitbucket.org/account/settings/>

An example with curl is the following:

```
curl -u BitbucketUsername:AppPassword https://api.bitbucket.org/2.0/repositories/WORKSPACE-ID/REPO-SLUG/commits
```

where   
**BitbucketUsername** replace with your Bitbucket username  
**AppPassword** replace with the app password you generated  
**WORKSPACE-ID** replace with the workspace id where this repo belongs  
**REPO-SLUG** replace with the repo slug for your repo

This API endpoint doesn't support filtering at the moment. Additionally, any Jira issue keys in the commit messages will be returned as part of the commit message, and not in a separate field. If you want to filter the results, my suggestion would be to use another tool that can filter JSON data to filter the results, like jq.

> list out all the commits against a tag

Are you referring to Git tags (<https://git-scm.com/book/en/v2/Git-Basics-Tagging>) ?

If so, you can retrieve the commit associated with a tag with the following endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-tags-name-get>

You can use filtering to get only the commit hash:

```
curl -u BitbucketUsername:AppPassword https://api.bitbucket.org/2.0/repositories/WORKSPACE-ID/REPO-SLUG/refs/tags/TAG-NAME?fields=target.hash
```

> list out all the commits against a sprint?

I will check with my colleagues from Jira support if that is perhaps possible with Jira API, I will let you know as soon as I have an update.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jira

label

sprint
SourceTree fails to start with "Root element is missing" error
Asked by Jen-Lung Chiu:

I installed SourceTree a while back and everything worked fine until this morning when the machine rebooted abruptly. After the reboot, SourceTree fails to start with the following error. Uninstall then reinstall does not help. Would appreciate if someone could help resolve this issue. Thanks,

(34a8.349c): CLR exception - code e0434352 (first chance) CLR exception type: System.Xml.XmlException

"Root element is missing."

(34a8.349c): CLR exception - code e0434352 (first chance)

CLR exception - code e0434352 (!!! second chance !!!)

CLR exception type: System.Configuration.ConfigurationErrorsException

"Root element is missing."


Answers:
author: 105349
body: Hey Jen-Lung!

Are you on Windows? If so, navigate to this directory:

```
%USER%\AppData\Local\Atlassian\
```

And delete a file that looks like this:

```
SourceTree.exe_Url_xxxxxxxxxx
```

Where *xxxxxxxxx* is a random hash. This is your user.config file, and sometimes it can become corrupt during a sudden interruption of service. You should be able to just move it to another location too, if you don't want to delete it straightaway.

Good luck!
Using SourceTree with Hg, what's best way to add feature or fix to older release?
Asked by ralvy:

I use HgFlow with SourceTree. Say I have closed releases 2.4, 2.5, and 2.6 in this particular tree. Now I want to add a feature or fix to 2.4 that I already added to the later versions. 2.4 is the release that I actually have in production and I want to update that before I later release 2.6.

Using HgFlow, adding a HotFix can only be done to the latest Master Branch, not 2.4.

Using HgFlow, I also cannot add a New Release to 2.4.

Do just add a New Branch (not with HgFlow) to Master Branch 2.4 and go from there? I assume that way I end up with 2 Master Branches that can have tips.

Or, should I add a New Branch (not with HgFlow) to the Develop 2.4 node and go from there?


Answers:
author: ralvy
body: This looks more like adding a new Head instead of adding a new Master branch. Is this a way some people use Mercurial to go back and do some work on an older version in Master?


author: ralvy
body: The more I play with different paths with this on a test SourceTree repository, it looks like it would be best to checkout Master 2.4 and branch from there without using HgFlow, and when done applying that new feature or fix to the older version, checkout my Develop tip again and start working on the main project again using HgFlow.

This way I end up with 2 Master branches and the usual Develop branch.

Is that reasonable?


Tags: mercurial
Pwd Req. Failing because login not seeing Domain
Asked by Robert Vignato:

RE: Source Tree - I'm trying to clone a repository. I enter the Source URL, the Dest.Path and Name fields auto-populate... When I click "Clone" I get the User and Pass challenge. I entered my Domain User and Pass and clicked "OK" but it fails... I need to go back an try different combinations of my username but there isn't (or at least I haven't found how) a way to change the username. It seems to have been cached somewhere. Any ideas?

Thank You for anything.

Rob


Answers:
author: Robert Vignato
body: Thanks for responding Seth!

Turns out it was a cAsE issue with my username. So, I deleted the existing setting and created a new one.

Note for Mac users.. The path to do this is:

(Top Menu) SourceTree \> Preferences \> Network (Tab)


author: Seth
body: First, check Tools \> Options \> Authentication.
Soutce Tree registration problem
Asked by giltapi:

Hi,

After installation Source Tree v1.8.3 on Windows 10 (new computer), installation passed.

In the registration stage I've inserted my existing account details, and when it trying to verify it, the app crashed.

Trying several times, same behavior. (I'm succeeding to login the web to my account)

Try on install it on Win8.1 and the registration passed.

Any ideas?

Thanks

Gil


Answers:
author: thinsoldier
body: On windows 7 after that popup window to log in with my account I just had to wait patiently for an hour until that window closed by itself before I could continue with installtion. I had been bragging about souretree and git to some collaborators for quite a while and now I have to eat crow because nobody can get Sourcetree to install reliably or at all in Windows 7, 8, or 10 ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")
I can not install or update the Source Tree in my Macbook Pro with internet
Asked by LaughingZhong:

I can not install or update the Source Tree in my Macbook Pro with internet.


Answers:
author: LaughingZhong
body: Thank you, I've solved the problem.


author: QwazyWabbit
body: I think he asked the same/similar question almost simultaneously here: <https://answers.atlassian.com/questions/38756286>


author: Seth
body: You've got to be more specific than that if you want help.


Tags: source
I have tried to push some large files and now want to cancel, how can I delete or remove these from the Push?
Asked by Clay Goldberg:

In Sourcetree, I committed some large video files to push and the push never completed. I'm trying to now stop the push and clear out my commit but don't know how to accomplish this. Please advise.


Answers:
author: Clay Goldberg
body: I continue to try and remove some committed large video files but have had no luck. I cannot push other items as the video files remain in the merge branch 'master'. How can I remove these?


author: QwazyWabbit
body: If the video files are discardable or backed up elsewhere, do a Repository Checkout at the HEAD and it will discard your commit and put your working copy in sync with the head.

If you want to save the files for a later push, Stash them and this will save them for a later commit and push.

This seems to be the most straightforward way to back out of a commit/push problem.
Error while pushing using Source Tree
Asked by sucharitha pinnamaneni:

Hi I am unable to push the code into the repository using source tree. Please find the attachments .Kindly, respond at your earliest.

.Error 4.pngError3.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Error-while-pushing-using-Source-Tree/qaq-p/177587?attachment-id=2503){#link_1172ded5ef61c4}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5202/1/Error%204.png){#display_1172ded5ef61c4_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Error-while-pushing-using-Source-Tree/qaq-p/177587?attachment-id=2504){#link_1172ded5ef61c4_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5202/2/Error3.png){#display_1172ded5ef61c4_2}


Answers:
author: Seth
body: Your error message says "Authentication failed". This probably means that your username/password is saved or entered incorrectly. It may also be that your user isn't allowed to push to that branch.


author: sucharitha pinnamaneni
body: Where can I re login using my Credentials ?
unable to open sourcetree 1.8.3 on windows 10
Asked by sagivasan P:

error in event viewer

**source ( application error)**   

Faulting application name: SourceTree.exe, version: 1.8.3.0, time stamp: 0x56f18db8  
Faulting module name: KERNELBASE.dll, version: 10.0.10240.16384, time stamp: 0x559f38c3  
Exception code: 0xe0434352  
Fault offset: 0x000000000002a1c8  
Faulting process id: 0x2ef8  
Faulting application start time: 0x01d1b1d9b87cff01  
Faulting application path: C:\\Program Files (x86)\\Atlassian\\SourceTree\\SourceTree.exe  
Faulting module path: C:\\Windows\\system32\\KERNELBASE.dll  
Report Id: 7c1cfdf9-315e-476a-bcbe-58ad9253b04b  
Faulting package full name:   
Faulting package-relative application ID:

**source(. net runtime)**

Application: SourceTree.exe  
Framework Version: v4.0.30319  
Description: The process was terminated due to an unhandled exception.  
Exception Info: System.Configuration.ConfigurationErrorsException  
Stack:  
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean)  
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(System.Configuration.ConfigurationSchemaErrors)  
at System.Configuration.Configuration..ctor(System.String, System.Type, System.Object\[\])  
at System.Configuration.ClientConfigurationHost.OpenExeConfiguration(System.Configuration.ConfigurationFileMap, Boolean, System.Configuration.ConfigurationUserLevel, System.String)  
at System.Configuration.ConfigurationManager.OpenExeConfigurationImpl(System.Configuration.ConfigurationFileMap, Boolean, System.Configuration.ConfigurationUserLevel, System.String, Boolean)  
at SourceTree.App.SetStartupJIT()  
at SourceTree.App..ctor()  
at SourceTree.App.Main()


Answers:
author: LT7
body: I raised a case with Atlassian on this and got this as a reply which fixed the issue for me.

"I've seen such errors in cases where the user.config file gets corrupted. If you open the file  

```
C:\Users\<username>\AppData\Local\Atlassian\SourceTree.exe<random_string>\1.8.3.0\user.config
```

does it look ok or is it full of \<NULL\> values?

Can you try deleting this file and then start SourceTree again?"


author: LT7
body: Seeing exactly the same issue here as well..


author: augiesarmy
body: I was able to open SourceTree 1.8.3 without any problems until today. Now I am getting this same error. Anybody know how to fix this issue?


Tags: windows
Utilisation sourcetree sur un serveur web local avec git
Asked by Claude Randrianina:

Bonjour,

Est-ce possible d'utiliser sourcetree pour le projet web en local? Si oui, comment synchroniser sourcetree avec le serveur web local ubuntu avec git.

D?tails:

* Install? git sur un serveur local sous ubuntu
* Install? sourcetree sur les postes des d?veloppeurs en local

Merci beaucoup.

Claude.


Answers:
author: Damien Braz
body: Hi Claude,

You should translate your request in English :smile:


author: Claude Randrianina
body: OK, thanks!!

Those are my questions  

Is it possible to use sourcetree for the web project locally? If so, how sourcetree synchronize with ubuntu local web server with git.  

Details:  

Git installed on a local server on ubuntu  
Sourcetree installed on developers of posts in local  

Thank you very much.  

Claude.