youngmon/atlassian-qna huggingface dataset:
Respository size is over limit, needs server-side garbage collection?
Asked by satrapal:

Hello, my repository with three active branches has been increasing with some commits and I wanted/needed to decrease It's size. I already undo last two commit's where was big files, but repo is still over limit. Locally has code about 270MB.

May I ask for triggering server-side garbage collection, please?

Thanks.


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

I found a repository that was showing 4 GB, so I believe this is the repo you were referring to, is that correct? If that's the case, I ran the GC against this repo, but the size didn't change.

Could you please confirm the steps you have followed to reduce its size locally? Have you pushed these changes to the remote repository (by running git push --force)?

In case you would like to read more about that, you can access the following documentation:

* <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

Please, feel free to share any additional information regarding this case. Looking forward to hearing from you.

Kind regards,   
Caroline

comments: author: satrapal
body: Hello Caroline, I really don't know where exactly was problem, but when I tried create fresh new repository (it's in the same project with "2" at the end of repository name) and pushed here all data from original repo with all branches and history everything is now ok here and capacity of repo is about 230MB.


author: Caroline R
body: Hi, [@satrapal](/t5/user/viewprofilepage/user-id/4693514)!

Thanks for getting back to us! I'm glad to know you were able to solve the problem.

Please feel free to create any other questions you might have in the future.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

garbage-collection
i have an error during puch code
Asked by Developer:

$ git push origin master  
remote: Forbidden  
fatal: unable to access 'repo_url': The requested URL returned error: 403


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

First, I wanted to give you a heads up that I removed the repo URL from your post for privacy reasons.

Regarding the issue you are facing:

**1.** I noticed that the repo URL in the output does not include your username. If you run the following command in the directory of your clone:

```
git remote -v
```

do you see your Bitbucket username listed in the URL?

If not, I would suggest changing this URL to include your username. E.g. if the output of the command **git remote -v** is something like this:

```
origin https://bitbucket.org/<workspace-id>/<repo-slug>.git (fetch)
origin https://bitbucket.org/<workspace-id>/<repo-slug>.git (push)
```

You can change it to include your username with the following command:

```
git remote set-url origin https://<Bitbucket_username>@bitbucket.org/<workspace-id>/<repo-slug>.git
```

where  
**\<Bitbucket_username\>** replace with your Bitbucket username  
**\<workspace-id\>** replace with the workspace id that owns this repo  
**\<repo-slug\>** replace with the reposiotry slug, which in this case is the repo name

If your remote's name is other than **origin**, then replace the name origin with the name of your remote.

**2.** If the issue persists after you make this change, I would suggest checking for any stored credentials for bitbucket.org if there is a credential manager on your computer, and remove them.

Then, next time you push, you should be asked for a password and you can provide either your account's password or an app password with permissions to write to repositories.

Please feel free to let me know how it goes.

Kind regards,  
Theodora


Tags: bitbucket-cloud
Why user group is show as empty after certain time?
Asked by Tornike Shavishvili:

Hello

I have created user group, invited another user to be its member. That user has accepted the invitation, but after some time, bitbucket could shows that particular user group as empty. It looks like users are automatically removed from user group.  

What could be reason of this and how can we correct it?

Best Regards

Tornike Shavishvili


Answers:
author: Theodora Boudale
body: Hi [@Tornike Shavishvili](/t5/user/viewprofilepage/user-id/4681347),

I'm not aware of any bug that would cause users to be removed from user groups, but we would need to investigate to figure out if that's the case or if something else is happening. The other possible reasons I can think of are a) another admin (if there are more) removed this user b) the user (accidentally perhaps?) left the workspace.

I'd like to ask for some information, so I can check our logs and better investigate:

**1.** Has this issue occurred more than once?

**2.** Did this occur to one of the workspaces administered by the Bitbucket Cloud account that has the same email as your community account?

**3.** If so, I see that this account administers multiple workspaces. Could you give me the last two letters of the workspace where this happened (or any letters that would help me identify which one it is, out of all workspaces you administer)?

**4.** Does this user have access to the user group now (have you re-invited them)?  
I need to know which this user is; I wouldn't recommend sharing the user details here publicly, but if they are part of your workspace's user group now, I can see who the user is.

**5.** Do you remember approximately the date that you noticed this user was missing from the user group?

Kind regards,  
Theodora

comments: author: Tornike Shavishvili
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Thank you for your response.  
As we are new to Bitbucket, we will investigate further, if this is human issue on our side.  
If this repeats, we will collect all information and inform you.  
Best Regards  
Tornike Shavishvili


author: Theodora Boudale
body: Hi [@Tornike Shavishvili](/t5/user/viewprofilepage/user-id/4681347),

Sure, not a problem at all. Please feel free to reach out if this reoccurs and we can investigate.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is there any validity for the refresh token
Asked by jeyanthi:

There is no expiry time provided for refresh token in this documentation (<https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/#OAuthonBitbucketCloud-Refreshtokens>).

Or will the refresh token stay without expiry ?

Will this answer still holds true ? <https://community.atlassian.com/t5/Answers-Developer-Questions/Does-the-oauth-2-refresh-token-expire/qaq-p/574230>


Answers:
author: Vishwas
body: Hey [@jeyanthi](/t5/user/viewprofilepage/user-id/1260602)

Refresh tokens don't expire. I guess answer holds good as I found another thread which had the same link as mentioned used in the answer <https://community.atlassian.com/t5/Bitbucket-questions/Does-the-refresh-token-obtained-through-the-OAuth-2-0-for-Apps/qaq-p/1417743>

Regards,

Vishwas

comments: author: jeyanthi
body: [@Vishwas](/t5/user/viewprofilepage/user-id/1231381) what is the point of using refresh token as its non-expired, can just access \& secret token would be fine for authenticaiton ? any ideas on that ?


author: Vishwas
body: Hey [@jeyanthi](/t5/user/viewprofilepage/user-id/1260602)

For authentication yes access token and secret is used.

Refresh tokens are just credential artifact which allows client application to get a new access tokens without having to ask the user to log in again.

Let me explain in detail about refresh token and working.

A refresh token is a special token that is used to obtain additional access tokens. This allows you to have short-lived access tokens without having to collect credentials every time one expires. You request a refresh token alongside the access and/or ID tokens as part of a user's initial authentication and authorization flow. Applications must then securely store refresh tokens since they allow users to remain authenticated.

For clients such as native apps, persistent refresh tokens help improve a user's authentication experience. For example, persistent refresh tokens allow a user to access streaming video services on their smart TV without signing in after they complete the initial device authorization.

Regards,

Vishwas


author: jeyanthi
body: Thanks for the detailed answer [@Vishwas](/t5/user/viewprofilepage/user-id/1231381)


Tags: api

authentication

bitbucket-cloud

cloud

token
Fail to receive verification email
Asked by Joanna Ng:

Hi,

Fail to receive verification email, just to resend the email for verification and email for recovery times already.

Thanks!


Answers:
author: Ang?lica Luz
body: Hello [@Joanna Ng](/t5/user/viewprofilepage/user-id/4693350),

Welcome to the Atlassian Community!

Just for a better understanding of the issue, I would like to know if you are not receiving verification emails on the email address you are using here in the community.

If that's the case, I can see that your account is disabled.

These are the responses we see on our side:

```
451 4.4.1 [internal] No valid hosts (too many connection failures)??
```

```
421 4.4.0 [internal] no mail servers for this domain could be reached at this time??
```

Have you reached out to the owner of the domain to check if there are any problems?

Are you able to access <https://id.atlassian.com/manage-profile/profile-and-visibility>?

Kind regards,  
Ang?lica

comments: author: Joanna Ng
body: Hi,

As I deleted my account yesterday, can you help to remove the account and I try to use the same email address to register again?

Thanks \& Regards,

Joanna Ng


author: Ang?lica Luz
body: Hi Joanna,

I see that your account is active again, but the logs are still showing a lot of failures:

```
451 4.4.1 [internal] No valid hosts (too many connection failures)
```

The notification failed and the delivery is temporarily suspended. The current status of the notifications is "Delay", so once the connection is reestablished, it should be delivered.

Can you check with the IT/Mail server team if the firewall isn't blocking our connection?

Please, check with them if our IPs and domains are whitelisted to make sure nothing is blocking our notifications:

* [IP addresses and domains for Atlassian cloud products](https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/)

Also, I checked your email address on this online tool and it returned some problems. You can also share it with your IT/Mail server team:

* <https://mxtoolbox.com/emailhealth/>

![Screen Shot 2022-01-05 at 14.30.00.png](https://community.atlassian.com/t5/image/serverpage/image-id/176263i1846BD749F401052/image-size/large?v=v2&px=999 "Screen Shot 2022-01-05 at 14.30.00.png")


author: Joanna Ng
body: Hi,

Other teammates can receive verification email successfully, I think they didn't change anything on the setting.


author: Ang?lica Luz
body: Hi Joanna,

Here is a screenshot of the logs that may help them to identify the issue:

![Screen Shot 2022-01-06 at 10.16.21.png](https://community.atlassian.com/t5/image/serverpage/image-id/176401iB1DE92ACC04A1E83/image-size/large?v=v2&px=999 "Screen Shot 2022-01-06 at 10.16.21.png")

```
554 5.4.7 [internal] message timeout (exceeded max time, last transfail: 421 4.4.0 [internal] no mail servers for this domain could be reached at this time)
```

Feel free to share this thread with the IT team of your company so they can see the details.
Notify Another Reviewer of Start of Review
Asked by Michael Payne:

We assign multiple reviewers to our PRs by default. When one reviewer starts a review, we would like the others to be notified in some way, ideally by some visual indicator on the Overview page.

If I start a review, I see a blue circle with a white dot next to my icon. But other reviewers don't see that, and have no way of knowing I have started a review until I comment. Alternatively, an automatic email notification would be acceptable.

Is there any way to configure BitBucket to do either of these things, or else can one or both of them be added as a feature?


Answers:
author: Johan Maes
body: We're in a similiar situation, our current workaround is to add a comment when you start a review.

comments: author: Michael Payne
body: I think that's a good workaround.


author: Michael Payne
body: I since noticed that you do get a blue dot in the dashboard view if someone has started a review. But it is not very noticeable, and nothing appears on the Overview page.


Tags: bitbucket-server

server
Bitbucket REST API - reference branches with forward slash in name
Asked by Mark Hegedus:

Hello everyone!

I am having trouble figuring out how one can reference branches with the forward slash / character in the name while making API calls.

When using URL encoding, Bitbucket will assume that the encoded forward slash (%2F) is a path parameter delimiter.

A simple example: trying to access README.md on a branch called "feature/test" with the following command will fail, as Bitbucket will try to access it on the non-existent "feature" branch, and will assume "test" is part of the path.

Request: `curl '`<https://api.bitbucket.org/2.0/repositories/my-workspace/myrepository/src/feature%2Ftest/README.md>`'`

Response: {"data":{"shas":\["feature"\]},"type":"error","error":{"message":"Commit not found","data":{"shas":\["feature"\]}}}

Is there any workaround for this? Because I've been searching for similar issues and so far haven't come up with anything.


Answers:
author: Mark Hegedus
body: Oh, probably shouldn't be holding my breath over this one...  

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

Anyone know of a workaround?

comments: author: seanaty
body: Work around is to make 2 API calls. Use the branch API to get the current commit of that branch, then use the current commit to call the source API.


author: Mark Hegedus
body: Hi [@seanaty](/t5/user/viewprofilepage/user-id/1301071) ! Thank you for your quick reply, this solution works.


author: Freddy Esneyder Jaimes Ruiz
body: [@seanaty](/t5/user/viewprofilepage/user-id/1301071) Thank you very much, it worked for me.


Tags: bitbucket-cloud

cloud
How to export a github project si i can see commits, pull requests ..?
Asked by Ines BARHOUMI:

How to export a github project si i can see commits, pull requests ..?


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

Bitbucket provides an [importer tool](https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository-from-github-or-gitlab/), which can be used to import git repositories from GitHub/GitLab to Bitbucket cloud. In order to import a repository, you can access your workspace in Bitbucket Cloud \> **Create repository** \> **Import repository**.

The import of repositories is limited to the Git repository itself, so you will not be able to see the PR history of the source repository.

We already have an open feature request to implement this as you can see here:

* [Ability to import Pull request from 3rd party git provider](https://jira.atlassian.com/browse/BCLOUD-19942)

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

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

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

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud

git

github
Project Settings > Branches doesn't exist
Asked by Emmanuel Chaudron:

In <https://confluence.atlassian.com/bitbucketserver/automatic-branch-merging-776639993.html#Automaticbranchmerging-Enableautomaticbranchmerging>, we're told to:

1. Go to **Project settings** \> **Branches**.

However, there is no "Branches" in my Project Settings (cf. screenshot).

Is the issue in the doc, or at my end?

![Screenshot 2022-01-03 at 14.46.26.png](/t5/image/serverpage/image-id/175869iC92FC45B045F8209/image-size/large?v=v2&px=999 "Screenshot 2022-01-03 at 14.46.26.png")


Answers:
author: Vishwas
body: Hey [@Emmanuel Chaudron](/t5/user/viewprofilepage/user-id/4593137)

Welcome to Atlassian Community !!

The doc you are referring to his BitBucket Data center, but you are trying to check in bitbucket cloud rite ?

For cloud variant this feature still not there you can vote here <https://jira.atlassian.com/browse/BCLOUD-14286>

Regards,

Vishwas

comments: author: Emmanuel Chaudron
body: Having two products with the same name was confusing, but thanks for the answer!


Tags: bitbucket-cloud

cloud
How to list members of a team? REST API
Asked by angelaaa:

Hey all,

I see that the team 2.0 API is deprecated and I can't find a way to list members of a specific group.

Thanks for the help.


Answers:
author: Vishwas
body: Hi [@angelaaa](/t5/user/viewprofilepage/user-id/4634181)

Since group list api is deprecated from the [post](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-teams-deprecation/) it is mentioned that we have to use workspace api as documented here <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-get>

Regards,

Vishwas

comments: author: angelaaa
body: Hey Vishwas,

Yes, I saw the workspace API, It doesn't give the correct answer.

It returns all the workspace users and I couldn't find a way to filter it by groups.

There is a solution with v1 APIs, maybe its the only solution for now


author: Vishwas
body: Hey [@angelaaa](/t5/user/viewprofilepage/user-id/4634181)

Hmm, I also couldn't find any other API apart from workspace one.

Like you mentioned yes V1 API is the solution for now as mentioned here below in the link there are few API's which is supported temporarily.

<https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/>

Regards,

Vishwas


author: Gonchik Tsymzhitov
body: Hi!

Did you checkout that announce ?

<https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-changes-gdpr/>

comments: author: angelaaa
body: Hey,

as I understood from the announcement, it talks about the users endpoint that was deprecated in V1 api.

my issue is with groups Endpoint

Thanks


Tags: api

bitbucket-cloud

cloud

rest-api

team
Cancel Bitbucket Backup
Asked by kok keng chew:

Hi,

I tried to cancel the Bitbucket backup using the authentication token from the log but it said the cancellation token is incorrect. The progress bar always shows the same status without any progress. How should I proceed from here? My bitbucket server is 7.15

Regards,

kok keng


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Did you try to restart? :)

comments: author: kok keng chew
body: I intended to restart after I got some replies from this community. I just want to be sure I'm doing the right thing. Will my bitbucket server be working fine after restarting? Is there a possibility the service will be locked and how to overcome? Is there a risk of losing any data?

Thanks,

Kk


Tags: bitbucket-server

server
Unable to import repository from self hosted Gitea
Asked by Sachin Patil:

I have self hosted Gitea server, from where cloning repositories on my local machine is working fine. But while importing Gitea repository to Bitbucket I am getting below error message.

<br />

"fatal: unable to access 'https:\*\*\*.git/': Received HTTP code 403 from proxy after CONNECT  
07:07:23 Remote Git clone failed: \<class 'bitbucket.apps.asyncx.tasks.ImportException'\>: Command failed. Return value: 128![Screenshot_3.png](https://community.atlassian.com/t5/image/serverpage/image-id/175823i232430B7262E4473/image-size/large?v=v2&px=999 "Screenshot_3.png")


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

Your local machine is using ssh to connect to the git repositories, but Bitbucket uses HTTPS, and the proxy between Bitbucket and the git server is not configured to allow that, or Gitea is not configured to support it.

comments: author: Sachin Patil
body: Thank you Nic,

On local machine I am using HTTPS to clone repository.

Also I have imported my Gitea repository to <https://try.gitea.io> site and it's perfectly imported.

Can you please let me know what proxy need to configure and where this need to be done.


author: Nic Brough -Adaptavist-
body: I don't know where your proxy is, or even if there is one. All I can tell you is that the error message says there is one between you and Gitea and it's not configured to allow you through from Bitbucket Cloud. The message you are getting may not be from a proxy, it may be Gitea itself. Either way, the proxy or Gitea are configured not to allow Bitbucket Cloud in. It could well be as simple as the wrong credentials for the proxy or Gitea


Tags: bitbucket-cloud

cloud
strange insertion of whitespace after 1st character
Asked by david shave:

I am getting a very strange whitespace issue.

I am working with a local copy of a WordPress site with the .git repo in the wp-content/themes folder so all changes to any theme are tracked etc.

When I set up the repo it considered every file (apart from those in gitignore) as new files and I committed those as the 'initial commit'.

Firstly is that normal? To have to commit all the files when setting up a new repo?

2nd - and this is the strange behaviour.

when I go to stage these files I get some whitespace inserted after the first character on many of the files.whitespace.jpg

I have the ignore whitespace checked so I am not sure what is causing this.  
[](https://community.atlassian.com/t5/Sourcetree-questions/strange-insertion-of-whitespace-after-1st-character/qaq-p/44328?attachment-id=10817){#link_116b1a89a611ed}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/1311/1/whitespace.jpg){#display_116b1a89a611ed_0}


Answers:
author: david shave
body: I found the file, but it is already set to true. Also this isn't happening to all of my repos, just this particular one.

comments: author: Bal?zs Szakm?ry
body: Maybe the config file of the repo (.config in the hidden .git folder) has this set to false?


author: david shave
body: content of config file in the repo: \[core\] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly


author: Bal?zs Szakm?ry
body: 1. Yes, this is normal.
2. This is most probably due to your codepage settings. (You use Windows, Git stores CR/LF with the unix codes.) Check your global Git config (usually at c:\\Users\\\<your username\>\\.gitconfig). In the \[core\] section, there should be an entry that says autocrlf = true. If it is not there, or set to false, change it.


Tags: whitespace
Is possible to connect github?
Asked by Sun mi Kang:

I have repository on soucetree.

I wonder i can upload repository on github or connect on github.


Answers:
author: Seth
body: Yes, sourcetree can connect to any Git or Mercurial remote that supports standard protocols.

You will probably have to create an empty repository on Github, then add that as a remote to SourceTree, then push your repository. However, I've never used Github, so the first step may be inaccurate.