youngmon/atlassian-qna huggingface dataset:
Viewing branch or pull request files individually
Asked by Jefims Bistrovs:

I have a large branch and I want to view files individually when I open it. I've found instructions how to set it [here](https://support.atlassian.com/bitbucket-cloud/docs/limits-for-viewing-content-and-diffs/#Viewing-files-individually)

Unfortunately I cannot find these settings anywhere in my bitbucket account.

Maybe this instruction is outdated? Can you help me and tell where they are placed?

If you can make some screenshots too, I'd be very thankful.


Answers:
author: Syahrul
body: Hey [@Jefims Bistrovs](/t5/user/viewprofilepage/user-id/2599986)

G'day.

You'll need to open the settings inside any existing Pull request to enable this setting. So open any current PR and select the **Settings** at the top as shown in the screenshot below:

![Screenshot 2022-09-05 at 4.40.08 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/214240i92B1B7B73BBE090C/image-size/large?v=v2&px=999 "Screenshot 2022-09-05 at 4.40.08 PM.png")

Then you'll see the setting under**Load files,** you can select the **Individually** option and click **Save**to have your PR load individual files instead of all at once.

I hope this helps.

Cheers,  
Syahrul


Tags: cloud
Can not push
Asked by edosvorai:

Message:  
git exited with code: 128  
warning: 'E:/Repository/DB/XXX.db' is owned by:  
'S-1-5-21-2057183145-794954146-654838779-1298'  
but the current user is:  
'S-1-5-21-1117324872-2930939953-484153162-1000'  
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.  
remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>  
remote: App passwords are recommended for most use cases and can be created in your Personal settings:  
remote: <https://bitbucket.org/account/settings/app-passwords/>


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

I see two issues in the part of the output you shared:

First, Git is showing a warning that you are logged in to your local machine as one user, but the directory of the Git repo in your machine is owned by a different user in that computer.

This is not related to Bitbucket users, it has to do with the users and the clone on your local machine. Is it possible to change the ownership of that directory to your user? Or log in to that computer as the user who owns this directory?

The second part of the error (*Bitbucket Cloud recently stopped supporting account passwords for Git authentication.*) indicates that the authentication details when you try to push are incorrect.

I would suggest first running the following command in the directory of the clone and checking if your username is listed in the URL:

```
git remote -v
```

If the output looks as follows:

```
origin https://bitbucket_username@bitbucket.org/workspace-id/repo.git (fetch)
origin https://bitbucket_username@bitbucket.org/workspace-id/repo.git (push)
```

then please check if **bitbucket_username** in the URL corresponds to your actual username listed here: <https://bitbucket.org/account/settings/>

If that is ok, the next thing to check is the password part. Your account's password can only be used for logging in to our website from browser. For operations like clone, pull, push via HTTPS, you will need to use an app password generated from here: <https://bitbucket.org/account/settings/app-passwords/>

If you only need to clone, pull, push to repos, an app password with permissions **Repositories : Read** and **Repositories : Write** should work.

Finally, if you are using a credential manager for Git, I would suggest clearing any saved credentials for bitbucket.org, in case an incorrect password or app password is saved there.

Kind regards,  
Theodora

comments: author: edosvorai
body: Thanks Theodora.  
The problem has disappeared.  
Now I can commit and push without any problem.


author: Theodora Boudale
body: That's good to hear [@edosvorai](/t5/user/viewprofilepage/user-id/4818687), please feel free to reach out if you ever need anything else.


Tags: bitbucket-cloud

cloud
pull-requests in pipeline not running
Asked by luis:

for some reason the pull-request script on my pipeline stopped working all of the sudden, anybody having the same issue?

pipelines:  
pull-requests:  
'\*\*':  
- step:  
name: Lint  
size: 2x  
caches:  
- node  
- npm  
script:  
- npm install --global npm  
- yarn install  
- yarn lint  
artifacts: #defining what files will be passed and available in next step  
- node_modules

- step:  
name: Unit Test  
size: 2x  
caches:  
- node  
- npm  
script:  
- yarn test __tests__/\* --runInBand --logHeapUsage --silent


Answers:
author: Theodora Boudale
body: Hi [@luis](/t5/user/viewprofilepage/user-id/3319011) and [@Matija Varjacic](/t5/user/viewprofilepage/user-id/4875069),

I checked with our development team and there was an issue with pipelines performance that day which has since been resolved.

In case you are still experiencing any issues, I would suggest creating a ticket with the support team so we can further investigate.

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.

Kind regards,  
Theodora


author: Matija Varjacic
body: It doesn't seem to work for me either.


Tags: bitbucket-cloud

cloud
Not receiving email notifications
Asked by shenyang4:

Im not receiving any notification email for my issues


Answers:
author: Syahrul
body: Hey [@shenyang4](/t5/user/viewprofilepage/user-id/5021451)

Welcome to the community!

I have looked into this and noticed that your email was caught in the suppression list on 1st September and has since been removed.

This happens because the email we sent to your mailbox was bounced back by your mailbox, which caused your email to be placed under the suppression list to avoid further issues.

Nevertheless, please let me know if you still have issues receiving email notifications.

Cheers,  
Syahrul

comments: author: shenyang4
body: Thank you [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

but I still can't receive the email now. How can I operate to receive the email normally?


Tags: bitbucket-cloud

cloud
Bitbucket POSTGRESQL query to list all the project and repositories with user permission
Asked by Alok Dubey:

I am looking for a Bitbucket POSTGRESQL query to list all the projects and repositories with user permissions.


Answers:
author: Jones56
body: I appreciate the information and advice you have shared. I will try to figure it out for more.

[CFA Home Login](https://www.cfa-home.net/)


Tags: bitbucket-server

postgres

server
Is it possible to use Bitbucket Cloud Migration to export an intire cloud instance to another?
Asked by Ariel Pires de Almeida:

I've been trying to migrate an entire instance, with all projects and repositories, of a bitbucket cloud instance to another. From what I've seen this is only possible through a script from the API. Is there another way? Can it be done with the Bitbucket Cloud Migration tool?


Answers:
author: seanaty
body: No. The migration assistant is heavily coupled with Bitbucket Server at the moment. Scripts would be the way to do it.

You might investigate doing a repo transfer: <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/>

While this cannot be done in bulk, it could potentially preserve most of the data. Definitely test it out first.


Tags: bitbucket-cloud

cloud
Add http-header to Bitbucket
Asked by Bastian Stehmann:

Hi,

I'm looking for a way to add http headers like HSTS to Bitbucket.

Did I understand it right, that it should be possible to add a header using the

server.server-header directive in the bitbucket.properties.

[Configuration properties \| Bitbucket Data Center and Server 8.3 \| Atlassian Documentation](https://confluence.atlassian.com/bitbucketserver/configuration-properties-776640155.html)

Is that correct? And how do I set that header?


Answers:
author: Christian Glockner
body: Hi Bastian,

That configuration property only controls the Server header. If you want to implement HSTS you will need to set up a reverse proxy server in front of Bitbucket Server and inject the header there.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Python OAuth2 Token - using App key
Asked by Richard Ballard:

Hi, I'm wondering if anyone has managed to get OAuth tokens working with App keys (I believe user passwords are now allowed now as that would be *Resource Owner Password Credentials Grant (4.3)* which is no longer supported). ref: <https://developer.atlassian.com/cloud/bitbucket/oauth-2/>

I've been trying the below (and modifications of it) but I just can't seem to get it to work. Are app-key O-auth supported?

Alternatively, how else do I have a python script get a token?

\`\`\`  
import requests  
client_id = 'my-user-name'  
client_secret = 'my-app-key'

url = "<https://bitbucket.org/site/oauth2/access_token>"  
data = { 'grant_type': 'client_credentials'}  
response = requests.request(  
"POST",  
url,  
auth=(client_id, client_secret),  
data=data  
)

print(response.json())  
try:  
access_token = response.json()\['access_token'\]  
print(f"access_token: {access_token}")  
except:  
print("OAuth Failed")  
sys.exit(-1)  
\`\`\`  
I also had a look at <https://bitbucket.org/atlassian/bb-cloud-client-creds-grant-sample-app/src/master/> and it says a client-id is "Key generated from Bitbucket Settings ? Add Consumer", but I can't see consumer settings anywhere... This repository is lined from the oauth-2 page, but hasn't been updated since 2018, so I assume the UI has changed and so the settings don't exist any more?


Answers:
author: Theodora Boudale
body: Hi Richard,

When you say app key, do you mean an app password generated by going to your avatar \> **Personal settings** \> **App passwords**?

I see that you are passing this for the client's secret (client_secret = 'my-app-key') and that you are using username for the client_id, but I think these need to be the key and secret of the OAuth consumer (the Key for client_id and the Secret for client_secret).

OAuth consumers are now associated with workspaces. In order to find the key and secret, you can go to your avatar \> **All workspaces** \> select the workspace you generated the OAuth consumer for \> **Settings** \> **OAuth consumers** \> select the consumer and you'll see both the key and secret.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
????????????????Windows?
Asked by YM:

???????????????????????????????????/???URL??????????????????????????

?????????????????????????????????????????????????

????????????????????

?????????<https://support.atlassian.com/ja/bitbucket-cloud/docs/add-an-app-password-to-sourcetree-or-another-application/>

????: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote [https://\*\*\*@bitbucket.org/\*\*\*](https://***@bitbucket.org/***)  
??:  
???: remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.  
remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>  
remote: App passwords are recommended for most use cases and can be created in your Personal settings:  
remote: <https://bitbucket.org/account/settings/app-passwords/>  
fatal: Authentication failed for '[https://bitbucket.org/\*\*\*](https://bitbucket.org/***)'


Answers:
author: Ben
body: G'day!

??????????????????????????2022?3?1?? GIT ?????/?????????? App Passwords ???????????????????????  
<https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

HTTPS ??? GIT ??????????AppPassword ?????????????AppPassword ??????????????????????????????????????  
<https://support.atlassian.com/ja/bitbucket-cloud/docs/app-passwords/#Create-an-app-password>

?????**HTTPS** ??????????:??????????????? AppPassword\* ??????

????? **HTTPS ??? GIT (GIT over HTPS)** ????? push/pull ????????????? URL ? **AppPassword** ???????????????????

```
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
```

git clone ????????????

```
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
```

???GIT ??????????????????????????????????????????? (Windows ??? Credential Manager?Mac ??? Access Keychain?Linux ??? /etc/shadow ???????)?

Sourcetree ??????????????????????????????????  
<https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968>

???????????

Cheers!

* Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

sourcetree
Unable to login Bitbucket - We couldn?t log you in
Asked by Svetlana Nikitina:

Please could you reactivate my account?

I'm getting the infamous "You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."

Thank you in advance!


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

Welcome to the Bitbucket Cloud community :)

I have just actioned the re-activation of your workspace, the workspace in question was marked DORMANT due to inactivity.

You should now be able to log in again without issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Is additional LFS storage cost fixed or per user?
Asked by EGraves:

Hi,

I am trying to price out additional LFS storage. We have a Premium plan and would like to add 100GB of storage. Will our bill go up by $10/month or $10/month/user? The wording here is not clear: <https://support.atlassian.com/bitbucket-cloud/docs/storage-policy-for-git-lfs-with-bitbucket/>

Thanks,

Eric


Answers:
author: Theodora Boudale
body: Hi Eric,

The Git LFS storage is counted against the workspace. Your bill will go up by $10/month, regardless of the number of users (the number of users doesn't matter for extra LFS storage or extra Pipelines minutes).

Please also note that the 100 GB of Git LFS is not per repo of the workspace, but across all repos in this workspace.

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

Kind regards,  
Theodora


author: Robert Wen_ReleaseTEAM_
body: Hello [@EGraves](/t5/user/viewprofilepage/user-id/5008596) ! Welcome to the Atlassian Community

It's $10/month, across all users.

comments: author: EGraves
body: I thought that answered my question, but now I'm still confused


author: EGraves
body: Hi Robert, just checking because I confused myself again... does this mean it's $10 for 100GB regardless of the number of users?


author: Robert Wen_ReleaseTEAM_
body: I'm changing my mind now that I've looked at it from the pricing page.

It is $10 for 100 GB **per account**

<https://www.atlassian.com/software/bitbucket/pricing>


Tags: bitbucket-cloud

cloud

cost

git-lfs
Someone has already added that SSH key to another account
Asked by Fotis Papadamis:

Hello,

I was about to add a public ssh key as an Access Key in "eretail-audit-api" when I got the error message "Someone has already added that SSH key to another account.".

The public key is:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEYBS8nKSwkTI6kirZs/GmYTehNY6wPD4OFZbTf01X8qzBpIkoO7AZ/4N6UaSGzcJhf7ajhR3pTHaZeH+4+W+/4eHqcHg4YLzvoIal3cRvuHs5o01Zeesi6ZdJJEPhtFn4rI7MNswaHVg659gpln2aKRnIyF7LYgNvRL+fd00u72xV4AEXSfWecOJ2oP6+/8D1DuI8xt3BOuAjNcCJR8tVTCu44Rg6gc1NtKBoYUt60BzUtATXSkybIhV9G7Wy63VupX6wRBxzsHHQnvnw7zl9xpFCT7thaMFBb0H8oZMkiC4eH/KobAKCaS9slVHN0ZF/V7s5i1C1askHLiMIgIYd ubuntu@ip-172-31-41-167

I have searched around but I cannot find where it has been added as an access key.

Please, if you may provide any info you are able to retrieve about this key.

Thank you in advance.


Answers:
author: Nic Brough -Adaptavist-
body: There's no easy way to work this out because the keys that belong to other accounts should not be shared.

If you shared the key with someone, you should know who. If you were given the key by someone, then you'll need to ask them.

If you have no luck chasing it down, you can raise a support request with Atlassian, and they can search out the key for you and hence identify the account you shared it with.

If you don't want to spend ages chasing down the share, then you can (and should) create a new key for your account and use that instead.


Tags: bitbucket-cloud

cloud
Need GC on remote
Asked by H?ctor Fenoll Malonda:

Please run garbage collection on our salesforce repository (<https://bitbucket.org/hotelbeds-cloud/salesforce/src/master/>)

Could you execute it at 00:00 GMT?

Thanks, best regards


Answers:
author: Ben
body: G'day H?ctor!

I have just executed the garbage collection on your repository at 00:00 GMT as requested, the size has reduced from 1.1GB to 736MB accordingly.  

We want to inform you that we do have a Feature request: <https://jira.atlassian.com/browse/BCLOUD-11593> to provide the option to run the GC from the end-user GUI. This way you need not raise a community ticket and wait for the support person to run the GC on your behalf.  
Our Dev team is currently working on implementing the feature request and we don't have any ETA for the fix. I would suggest you "Watch" this ticket for future updates from our Dev team.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Pull Request: Commits by Commits review in bitbucket cloud?
Asked by Raphael Ansermet:

Hi   
I used to work with Bitbucket server and use to review pull request commit by commit  
using the **Change Scope selector** , described in   
[Reviewing a pull request \| Bitbucket Data Center and Server 8.3 \| Atlassian Documentation](https://confluence.atlassian.com/bitbucketserver/reviewing-a-pull-request-808488540.html#:~:text=When%20viewing%20a%20commit%2C%20you%20can%20comment%20on,can%20see%20exactly%20which%20commits%20will%20be%20merged.)

When a comment was added in a commit it was then seen in the pull request as  
userXYZ added comment on commit \<hash\>   
"please remove this magic number"  

<br />

I'm working now with Bitbucket cloud and based on the following  
[Review code in a pull request \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/review-code-in-a-pull-request/#Setting-viewing-preferences-for-each-file)  
[Bitbucket Cloud's new code review experience is now available - Bitbucket](https://bitbucket.org/blog/new-cloud-code-review-experience)  
I can't figure out if it's still possible or not anymore to properly review a pull request commit by commit?  
When I open commits one by one and add comments, the comments aren't visible in the Pull request itself.   

=\> Does anybody have a smart and efficient way to review commit by commit while still having the comment automatically replicated in the pull request.

Thanks for your help


Answers:
author: Patrik S
body: Hello [@Raphael Ansermet](/t5/user/viewprofilepage/user-id/4804132) ,

Welcome to Atlassian Community!

I'm afraid it's not currently possible to execute interactive pull request reviews (commit by commit) in Bitbucket Cloud as in Bitbucket Server/Datacenter, and the Pull Request page view will show the consolidated diff for all the commits currently in that Pull Request.

We do have a feature request to implement interactive reviews in Bitbucket Cloud though, which you can find in the following link :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Raphael Ansermet](/t5/user/viewprofilepage/user-id/4804132) .

Kind regards,

Patrik S

comments: author: Raphael Ansermet
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)   
thank you very much for your prompt answer.  
Kind regards

Raphael


Tags: bitbucket-cloud

cloud
Pipeline atlassian/sftp-deploy:0.5.11 won't deploy dist folder.
Asked by vmanfredini:

Everything works fine, except for not copying some dist folders:

```
wp-includes/css/dist/
```

```
wp-includes/js/dist/
```

I've seen that some people using git ftp are able to use a file called .git-ftp-include to include those folders. Is there a similar one when using sftp-deploy?

Thanks!


Answers:
author: vmanfredini
body: I just figured out those directories weren't being tracked at all because they were gitignored.

That's why they weren't being deployed.

?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

ftp

sftp
Error About UnsupportedClassVerion Java Runtime Error
Asked by Cosmin:

Hello!

Can someone please help me? Thank you in advance!

I got this error while trying to RUN a pipeline for salesforce with Ant Migration Tool  

/opt/atlassian/pipelines/agent/build/build/build.xml:5: java.lang.UnsupportedClassVersionError: com/sforce/soap/partner/fault/LoginFault has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0  
at java.lang.ClassLoader.defineClass1(Native Method)


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

This is what it says it is - you've compiled a java class with a certain version of Jira, but you're now trying to run it on an older JVM.

You either need to compile the class for the version of Java, or upgrade the JVM to the version you compiled for.

comments: author: Cosmin
body: It works now, I did not set the image of the docker that I got form the bitbucket.  
It was empty like :

"image:"

and by default, image of docker from bitbucket runs on 52.0


author: Akash Jain
body: can you provide a detailed info on the above?


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

[@Akash Jain](/t5/user/viewprofilepage/user-id/5220087) could you explain what more "detailed info" you need, beyond "use the right version of Java for your code"?


author: Akash Jain
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) I have checked the version on my local system...As you said "you've compiled a java class with a certain version of Jira" so just wanted to know that local system JDK version should match with the JIRA version of bitbucket ? and where can I find JIRA JVM version?


author: Nic Brough -Adaptavist-
body: So what version of Java are you using?


Tags: ant

bitbucket-cloud

bitbucket-pipelines

cloud

salesforce
When I push code its shows error Could not read from remote repository? How can I do this
Asked by Mansi Swami:

when I run command git push -f origin

It shows error below-

git@bitbucket.org: Permission denied (publickey).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.

Please help me out with this


Answers:
author: Patrik S
body: Hello [@Mansi Swami](/t5/user/viewprofilepage/user-id/5020240) ,

Welcome to Atlassian Community!

This error is usually returned when the SSH key being offered by your machine either does not have sufficient permissions to execute the action or was not properly added to your bitbucket account.

In this case, I would suggest following the instructions on the page [Troubleshoot SSH issues for Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-ssh-issues/).

If after following those instructions you are still facing the error, I'd like you to share here the output of the following command:

```
ssh -Tvvv git@bitbucket.org
```

This will provide verbose logs of the SSH authentication and a possible indication of what is the issue.

Let me know if you have any questions.

Thank you, [@Mansi Swami](/t5/user/viewprofilepage/user-id/5020240) !

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud