youngmon/atlassian-qna huggingface dataset:
Garbage Collection Does Not Reduce Repo Size
Asked by Jeff Mangum:

Hello,

I am trying to reduce the size of my bitbucket repo. We have cleared the last commits and removed files, but I have not been successful at reducing my repo size. I have tried running \`git gc\`, but this did not have any affect on the repo size.

I think I need a garbage collection from support. Please advise how I can reduce the repo size if this does not work as I have taken steps outlined here. <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>

Thank you!

-- Jeff


Answers:
author: Syahrul
body: Hey [@Jeff Mangum](/t5/user/viewprofilepage/user-id/4540881)

G'day.

As requested, I have triggered Git GC on the affected repository, and the size is now 62 MB. So can you check and verify this with me?

Cheers,  
Syahrul

comments: author: Jeff Mangum
body: Yes! Thank you [@Syahrul](/t5/user/viewprofilepage/user-id/744536) . -- Jeff


Tags: bitbucket-cloud

cloud
issue status
Asked by Nicoleta Pascu-Moody:

How can I change the status of an Issue in bitbucket? They all say New.


Answers:
author: Ben
body: Hi Nicoleta,

To change an issue status you will need to click on the issue to access its contents, then click the "Workflow" button and select the desired status for the issue from the resulting dropdown.  
Once you change the status you will be prompted with a dialogue box asking you to leave a comment - this is optional and you can leave it blank if you wish. Once you click the "Change" button this finalizes the process and changes the issue status accordingly.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Accessing artifacts directly from Bitbucket pipeline interface?
Asked by Brett James:

Is it possible to configure a pipeline to output artifacts (such as coverage/test reports \*.html) that are accessible in the pipeline UI in there original format, rather than compressed tar.gz?  
I'm finding it quite clunky to download each time to view. On other CI tools, there is the capability to similar right click on the html artifacts and open in browser.  
I have a pipeline with similar steps to the example below:  

```
image: golang:1.19

pipelines:

  default:

    - step:

        name: Build and Test

        script:

          - make build

          - make test

          - make coverage

          - make lint

        artifacts:

          - generated/coverage/index.html

          - generated/test-reports/*
```

Is there any way I can directly access artifacts (such as html files) from the UI?


Answers:
author: Patrik S
body: Hello [@Brett James](/t5/user/viewprofilepage/user-id/5109723) ,

Welcome to Atlassian Community!

If your build generates test results in JUnit or [Maven Surefire](https://gitbox.apache.org/repos/asf?p=maven-surefire.git;a=blob;f=maven-surefire-plugin/src/site/resources/xsd/surefire-test-report-3.0.xsd;h=81b08f484d24809b3e5940618cddcf0db4cdb8eb;hb=edb3b71b95db98eef6a8e4fa98d376fd3512b05a) XML formats, regardless of the language being used, you will be able to see the Test Reports directly in the web interface. The Tests report tab will only show if you have **failed** tests to review. More details on [Test reporting in pipelines](https://support.atlassian.com/bitbucket-cloud/docs/test-reporting-in-pipelines/).

For tests in different formats or for any type of artifacts (which are compressed at the end of the step), I'm afraid it's not currently possible to view them directly in the UI, and you would have to download the artifact to visualize it.

We do have a feature request to implement the ability to view artifacts in the web browser, which you can find on the following link :

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

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, [@Brett James](/t5/user/viewprofilepage/user-id/5109723) !

Patrik S


Tags: artefact

bitbucket-cloud

bitbucket-pipelines

cloud
How can i get my personal access token
Asked by Rahul HD:

How can I navigate to my personal access token from my profile?


Answers:
author: Sebastian Krzewi?ski
body: Hi [@Rahul HD](/t5/user/viewprofilepage/user-id/5090015)

Bitbucket Cloud does not have personal access tokens, please check this community answer - <https://community.atlassian.com/t5/Bitbucket-questions/Personal-Access-Token-for-Bitbucket-Cloud/qaq-p/677663>

Regards,

Seba


Tags: bitbucket-cloud

cloud
Don't want to see changes in certain files when viewing the diff of commits
Asked by Perretta_ Ryan:

To be clear here, I do NOT want to use a .gitignore because it is important that these changes still get saved to the repository. The software that I am using saves each component of my project with a property called 'lastModificationSignature' that will update on every component every time I export it to Bitbucket. This makes a big mess when I look at the diff between two commits. What I would like is a way to have Bitbucket ignore these changes when showing the diff. All of these files share the same name, but exist in various folders. If anyone knows if there is a way to do this please let me know. Thank you!


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

I'm afraid that it is not possible to exclude files from a commit's diff at the moment, this feature is only available for [pull request diffs](https://support.atlassian.com/bitbucket-cloud/docs/exclude-files-from-pull-request-diffs/).

We have a feature request for what you are asking in our issue tracker:

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

The request has been closed as it is unlikely to be worked on in the near future. However, I would suggest leaving a comment there to express your interest and give details about your use case, as our product managers continue to monitor even closed requests.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
[bitbucket rest API 2.0] get a pull request 's reviewers that approved the pull request
Asked by Iuliia Gapon:

Hello Bitbucket team,

I need to get a pull request 's reviewers that approved the pull request. Could you please advise how to do it using bitbucket rest API 2.0?


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

Welcome to the Bitbucket Cloud Community! :)

This page here will advise you on how to list information about a certain pull request based on the pull request ID (this can be found at the end of the URL on the pull request or in the UI):  
<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-get>

To authenticate with the /2.0/repositories endpoint, you will first need to configure an AppPassword - a guide for setting this up can be found here:  
<https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/>

For example - this cURL command will give you information about the pull request, including a list of the reviewers on that pull request along with their role:

```
curl --request GET \
--url https://api.bitbucket.org/2.0/repositories/{workspaceID}/{reposlug}/pullrequests/{id} \
--user {username}:{AppPassword}
```

**NOTE:** You will need to remove the curly braces and replace workspaceID, reposlug, id, username, AppPassword with actual values.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


author: abuislam
body: o retrieve the list of reviewers who approved a pull request using the Bitbucket REST API 2.0, you can use the endpoint for fetching pull request details. Specifically, you can query the pull request's approvals to get the information about reviewers who have approved it.

You might use the following endpoint: `GET /2.0/repositories/{username}/{repo_slug}/pullrequests/{pull_request_id}/approve`

This will provide the details of the users who have approved the pull request. For further guidance, you might refer to the Bitbucket API documentation or community forums for additional support.

May Allah make it easy for you and grant you success in your work[.](https://surah-al-waqiah.com/al-kahf/)


Tags: bitbucket-cloud

cloud
Where is the Delete PR?
Asked by Jessy Houle:

Is there no delete PR option in Bitbucket?


Answers:
author: Jessy Houle
body: Disregard the question.. I would say ***delete*** the question... but... too much?

In any case, if people are looking here.. as of 12/27/2022, this is apparently not possible in Bitbucket, and the question from Atlassian (Why do you need to delete pull requests?) gives me the impression it's not a priority.


Tags: bitbucket-cloud

cloud
I am getting error like remote hung up unexpectedly,while cloning through source tree
Asked by ramani_chandran:

fatal: early EOF  
fatal: The remote end hung up unexpectedly  
fatal: unpack-objects failed  
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054  
Completed with errors, see above.


Answers:
author: minnsey
body: Hi  

Although this is not an exact match <https://stackoverflow.com/questions/3876563/curl-request-is-failing-on-the-ssl> it is similar it looks like an issue with the SSL cert? Are you using a self signed cert on your own host or anything like that?

comments: author: ramani_chandran
body: yes i am using self signed certificate and it is not installed in the server end...
Someone has already added that SSH key
Asked by Rodrigo de Lima Silva:

Hi,

I'm trying to add my ssh public key on my account, but, I receive this error: Someone has already added that SSH key.

I search another account with this key, but I'm not found.


Answers:
author: Theodora Boudale
body: Hi [@Rodrigo de Lima Silva](/t5/user/viewprofilepage/user-id/5108804) and welcome to the community!

I would suggest checking the following places first:

**Account SSH keys**

Check the key listed in <https://bitbucket.org/account/settings/ssh-keys/>, in case this key is already added to your account's SSH keys. You can select the pencil icon that edits each key, in order to view each key's value.

**Workspace SSH keys**

I can see that you are an administrator of another workspace (apart from your personal one) that has SSH keys associated with it.

Go to this page <https://bitbucket.org/account/workspaces/> to see all your workspaces listed, and select **Manage** for this other workspace \> select **SSH keys**, and then check the SSH keys listed there.

**Additional Bitbucket accounts**

If you have another Bitbucket Cloud account with a different email, I would suggest checking the account and workspace SSH keys associated with that account as well.

If you still cannot find the key, you can create a ticket with our support team, provide the public SSH key in the ticket, and ask for assistance. 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. Please make sure to provide the workspace id of your workspace that is on a paid billing plan, in order to be able to proceed with the ticket creation.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
SourceTree will no longer start - 2.4.8.0
Asked by Hello0630:

I downloaded the SourceTree of windows version, and tried to install it. But it does not lunch properly. Followed the suggestion via <https://community.atlassian.com/t5/Sourcetree-questions/Source-Tree-for-Windows-does-not-start/qaq-p/26688>. But it still does not work. Every time when I ran SourceTree.exe, SourceTree.exe_Url_bnoho02qjxwb1pths0l4vdsv13r10poe is created. Add the

\<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"\>  
\<value\>True\</value\>  
\</setting\>

to the user.config, it does not work.

Would you like to advice what the best solution is? It is really annoying and I spent quite a lot of time in solving it already. Many thanks.


Answers:
author: minnsey
body: Hi  
Is there anything in the %localappdata%\\Atlassian\\Sourcetree\\sourcetree.log or Event Viewer indicating what is happening?
Sourcetree connect to Github with 2FA does not work
Asked by Keith Smith:

I have followed all of the instructions. The instructions say to copy and paste the password. This doesn't even make sense since when you attempt to connect, SourceTree asks you to log in with a 2FA process and "supposedly" saves the OAUTH token, but nope. It doesn't.

Creating a separate password pasting in the OAUTH token also does not work. 2FA makes SourceTree absolutely broken. Is anyone working to make the documentation correct or make the application function properly?


Answers:
author: minnsey
body: Hi  

Can you confirm what version of Sourcetree and Git you are using?  

In Sourcetree for Windows when you add/edit a GitHub account you have the option to use Basic Auth username/password or OAuth.  

If you select OAuth you should be redirected to the browser to login, go through 2FA,, authorize and then be sent an access_token. This access token is then stored in the Windows Vault/Credential Manager for re-use by Sourcetree for REST interactions and by Git for its interactions.  

Independently the Git Credential Manager for Windows, bundled with Git for Windows, supports GitHubs 2FA directly. Again it stores its credentials in Windows Credential Manager.  

GitHub recently removed support for TLS 1.0 and 1.1 protocols this means you will need to update to Git 2.16 or higher to continue using http URLs for Git remotes.


Tags: 2-factor-authentication
fetch and merge operation in source tree
Asked by Gupta Kesavarapu:

Instead of doing pull operation from source tree, I want to do fetch and merge operation to check which are all the files pulled from my remote repository to local.

In merge operation, I can see all the files that are fetched from remote. Out of them, I don't want my local file to update with remote changes in 1 of the file. Because in 1 of the file, I am currently doing some inprogress work. so, I don't want to push these in progress changes at this stage and at the same time, I don't want to take update from repository for this file. can I ignore that particular file in doing the merge operation?


Answers:
author: minnsey
body: Hi  

I would suggest stashing the 1 file you have changed before running the fetch + merge.
Latest version of Sourcetree 2.5.4.0?
Asked by Carlos Arreola:

I recently got a new laptop and downloaded 2.4.8.0 from the website and installed. When I checked the options, it told me 2.5.4.0 was available so I installed it.

However, on my previous desktop the update to 2.5.4.0 is not available. Which is the correct release? Is there a download link for this latest version? Should I uninstall 2.5.4.0 and return to 2.4.8.0?


Answers:
author: Mikael Sandberg
body: 2.5.4 is still being rolled out, Sourcetree moved to staged updates about 2 years ago, have a look at this [blog post](https://blog.sourcetreeapp.com/2016/11/16/adding-staged-updates-to-sourcetree/) about it.


author: kenrhenson
body: I wouldn't bother updating, I'm rolling back to a solid working version. They keep breaking things and then never fixing them.
Can't define or change SSH Key for account
Asked by Nick Makris:

I have 2 accounts that I use with bitbucket. However, when I use Auth Type oAuth, connect my account, I can't change the SSH Key. The reason I want to do this is because there is an issue with the SSH Key that is attached to the account that SourceTree is defaulting.

When I go to copy that SSH Key, I get this:

-----BEGIN RSA

That's it, nothing else. So in which case it fails for both my accounts. I have generated 2 different keys and have them both linked to their respected bitbucket account (one personal, one work), but since I cannot change them in SourceTree, I have to resort to HTTPS for my repos. Is there any way I can change this or adjust it?


Answers:
author: bgannin
body: Hi Nick,

Thank you for your patience. The key copying is a new bug I'm not aware of, please file a ticket (<https://jira.atlassian.com/browse/SRCTREE>) and we'll take it from there. If you don't mind, please file another ticket about the SSH tickets and which is being loaded for each account and we'll follow up on that. It's easiest to do via individual tickets.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Nick Makris
body: Gotcha, thank you!
Can't clone new or push from existing due to SAML SSO error
Asked by sletkeman:

As part of its effort to tighten us security, my work is now requiring us to log into Github through our Microsoft active directory accounts. Is there any way for me to continue to use Source Tree, or will I have to wait for some future update? I can still log into my Github account through the repository browser, but I can't clone new repositories or push changes to existing ones. I get the error pasted at the bottom when I try to do anything. I saw that perhaps I should be able to do it using a Personal Access Token since Azure AD is one of the identity providers supported, but I can't figure out what to do with the token.

remote: The \`\*\*\*\*\*\*\*' organization has enabled or enforced SAML SSO. To access

remote: this repository, you must use the HTTPS remote with a personal access token

remote: that has been whitelisted for this organization. Visit

remote: <https://help.github.com/articles/authenticating-to-a-github-organization-with-saml-single-sign-on/> for more information.


Answers:
author: minnsey
body: Hi  

To be honest we've not tested this scenario, however.....  

GitHub Personal Access Tokens should work like a password so you should be able to use them for basic auth style authentication using username/personal access token.  

As such you should be able to use the personal access token in place of your usual password in git prompts and/or Sourcetree account settings.  

<https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/>

comments: author: yamit.sivak
body: Doesn't work for me.


author: Lakeisha Pogrzeba
body: same, doesnt work for me. i just keep getting this error message, unable to enter the token i generated

how do i stop this message from coming:

remote: The \`\*\*\*\*\*\*\*' organization has enabled or enforced SAML SSO. To access

remote: this repository, you must use the HTTPS remote with a personal access token

remote: that has been whitelisted for this organization. Visit


author: minnsey
body: [@Lakeisha Pogrzeba](/t5/user/viewprofilepage/user-id/4653733) Sounds like you need to authorize your Personal Access Token?  

<https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls>


author: Lakeisha Pogrzeba
body: got it working. forgot to delete my old profile so it was taking that one
How can i pull a previous commit
Asked by alphaMEDRIX_NEW:

I want to return to a previous commit an not the last one. After that I wand to delete my last commit.


Answers:
author: minnsey
body: Hi  

If you want to go back to a previous commit and lose all the changes after that you can select your commit and use the *Reset current branch to this commit* option and choose the *Hard* reset.  

Be aware this will remove every change after the selected commit.

comments: author: alphaMEDRIX_NEW
body: Thank you.

That is the only way?


author: minnsey
body: Hi I'd need to know is more detail what you are trying to do.
Not able to Install SOurcetree
Asked by Mohammed Ibrahim:

when installing sourcetree , after click of use atlassian existing account , i entered user name and password after that i am not able to continue , refer screenshot below![Capture.JPG](/t5/image/serverpage/image-id/19628i5064189C23D1EC7F/image-dimensions/402x372?v=v2 "Capture.JPG")


Answers:
author: minnsey
body: Hi  

Sourcetree's registration depends on a WPF Web Control that in turn relies on Internet Explorer and it's settings.  

If you can log directly into <https://id.atlassian.com> via Internet Explorer then registration in Sourcetree should work.  

If you have any issues logging in via Internet Explorer our best advice as of today for registration webview issues with IE is as follows::

1. open Internet Explorer
2. open the Developer tools, f12
   1. set the Browser Mode 10
   2. set the Document Mode Standards
3. open Cog/Internet options
   1. ensure the following settings are enabled
   2. Misc/Access data sources across domains
   3. Misc/Allow META_REFRESH
   4. Scripting/Active Scripting
Need to calculate the time spent on development for a particular class file
Asked by CrazyAs5assin:

We recently moved to source tree. I am part of automation team where we have test scripts . In case we need to modify the script. Is there any way i can track the time i spent on the particular script


Answers:
author: Ana Retamal
body: Hi Vignesh, you won't be able to track time using Sourcetree. I've done some research and found some tools that might help you track the time you spend doing certain tasks in your computer, you can see an example [here](https://www.forbes.com/sites/tomaslaurinavicius/2016/12/20/time-tracking-tools/#33f64a5d1f4b).

Hope that helps!

Ana
How can I remove deleted Github repositories from Source Tree?
Asked by Peepijeep:

Hello,

On Github, I had few repositories, but I deleted them (I deleted them on Github).

But when I click on "add remote repository" in Source Tree, I can still see these deleted repositories in the list.

I want to remove them from that list, but I can't. Is that a bug? Will this feature implemented soon?

Best regards

![Github.png](/t5/image/serverpage/image-id/19587i5FE501DB08B06E2B/image-size/large?v=v2&px=999 "Github.png")


Answers:
author: Peepijeep
body: Hey, I used old Version 2.4.8.

The new Version 2.5.5 solved the problem. :D


author: Peepijeep
body: My list is not too long, but I have people in my class who have much bigger lists, and 90% of the entries are GitHub repositories that doesn't exist anymore.

comments: author: Peepijeep
body: This seems to be a bug. Is there a way I can hide the deleted repositories?


author: Peepijeep
body: This really is a bug. Where can I add bug reports?


Tags: github
Getting a bad password error when try to connect to source tree after reseting the password
Asked by Govind Rajulu:

Getting a bad password error when try to connect to source tree after reseting the password


Answers:
author: minnsey
body: Hi  

Can you post the actual error and where you are trying to reset the password? What version fo Sourcetree are you running?


author: bgannin
body: What OS are you on? Which version of Sourcetree are you using?
Installation without logging in
Asked by hilljamison1:

Is there a way to install the software without logging in? I am setting up a shared computer at work, and wouldn't want people accessing my account and projects and pushing changes unless they are already a collaborator.


Answers:
author: Ana Retamal
body: Hi Jamison! Sourcetree gets installed in your personal account on the computer so your colleagues won't be able to access your Sourcetree unless they have access to your profile on that computer.

In response to your question, it's not possible to use Sourcetree without logging in. You could delete your password every time you perform an operation, but they'll still have access to your local data.

Hope that helps!

Ana


Tags: install