youngmon/atlassian-qna huggingface dataset:
Delete Account
Asked by David Dinner:

How do I delete the org Bitbucket account?


Answers:
author: Sanjen Bariki
body: Hi [@David Dinner](/t5/user/viewprofilepage/user-id/843653) ,

Welcome to Atlassian Community!

Please find the below Article link to delete the org Bitbucket account.

* **[Delete the Org Account](https://support.atlassian.com/atlassian-account/docs/delete-your-atlassian-account/)**

I think the above document is enough for the solution.

*Note:- Please make sure that Org is unnecessary*

**Please Accept the Answer If it helps you?.**

Regards,

Sanjen


author: Sanjen Bariki
body: Hi [@David Dinner](/t5/user/viewprofilepage/user-id/843653) ,

Welcome to Atlassian Community!

Please check the below the Article to get the solution How do I delete the org Bitbucket account?

* **[Delete your Atlassian account](https://support.atlassian.com/atlassian-account/docs/delete-your-atlassian-account/)**

I think the above Article is enough for you to get the solution.

**Please Accept the answer If it helps you?**

Regards,

Sanjen


Tags: bitbucket-cloud

cloud
Pushing file to clients repo returns 400 after exceeding some file size, is there a size limitation?
Asked by Mikhail Kotelya:

I'm using OAuth consumer to upload files to clients repo described here -

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post>

Whenever I'm uploading files up to 1 mb everything running smoothly, when file size exceeds 1,5 mb I'm getting 400 error code without explanation, I suggest problem has to do with size limitation of this api or something on the user's side (his repo size limitations), tried it for multiple users, same result

Here's my code -

![Screenshot 2023-06-20 at 17.56.04.png](https://community.atlassian.com/t5/image/serverpage/image-id/264115i5E3575C35D46A355/image-size/large?v=v2&px=999 "Screenshot 2023-06-20 at 17.56.04.png")![Screenshot 2023-06-20 at 17.56.22.png](https://community.atlassian.com/t5/image/serverpage/image-id/264116iCA1FC093FACCF8FB/image-size/large?v=v2&px=999 "Screenshot 2023-06-20 at 17.56.22.png")


Answers:
author: Theodora Boudale
body: Hi Mikhail,

The 400 error indicates a bad request, for example, it might be a missing attribute/parameter.

The limit for uploading a file via API is 500 MB (<https://jira.atlassian.com/browse/BCLOUD-18999>), which is well above the size of the files you are uploading.

Are you able to upload one of these files using a curl command as follows?

```
curl -X POST -u username:app-password https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/src -F /repo/path/to/myFile.json=@myFile.json -F branch=test-branch -F message="my commit message"
```

I formatted with bold the values you need to replace.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Artefacts not working anymore with .net7
Asked by Daniel Keeley:

I have a pipeline that publishes a .net core project and makes it an artefact which then the next step zips it and sends the zip to the server.

It works with .net5 but now .net7 is slightly different, it has to use -*property:PublishDir=/published/* instead of *-o* (output) which I'm guessing is the cause of the issue.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/264041i24516D6863C00718/image-size/large?v=v2&px=999 "image.png")

If I check the folder with dir, it is correct, it has the files in:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/264038iB5C6057E84F8EE3C/image-size/large?v=v2&px=999 "image.png")

Yet the artefacts tab says "No artifacts uploaded".

So on my next step it shows no files:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/264040iC57AC45195244F2E/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Theodora Boudale
body: Hi Daniel,

When you run a Pipelines build, a Docker container will start for every step of your pipeline. The repo will get cloned in the path **/opt/atlassian/pipelines/agent/build** (this is exposed in the variable $BITBUCKET_CLONE_DIR) which is the present working directory when the first command from your step's script gets executed. When the step finishes, the container gets destroyed.

Only files in the BITBUCKET_CLONE_DIR can be defined as artifacts. The paths in the artifacts definition need to be relative to the clone directory.

With the artifact definition you have, the pipeline is going to look for a directory named **published** inside the BITBUCKET_CLONE_DIR. However, it looks like your artifacts may be generated inside **/published** instead. This is a directory named **published** at the root of the container, and not inside the BITBUCKET_CLONE_DIR.

Can you try removing the forward slash from -property:PublishDir=/published/, so change it to

```
-property:PublishDir=published/
```

and see if the artifacts get generated afterwards?

If the property needs an absolute path, you can use

```
-property:PublishDir=$BITBUCKET_CLONE_DIR/published/
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
forge Host key verification failed.
Asked by Prateek Mishra:

ACTION REQUIRED: Update your Bitbucket Cloud SSH Host Keys
I am getting this
Host key verification failed. fatal: Could not read from remote repository.
even though I have updated knowns hosts file
ssh-keygen -R bitbucket.org \&\& curl <https://bitbucket.org/site/ssh> \>\> \~/.ssh/known_hosts {#toc-hId--463272306}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


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

Can you please try executing the following command and let me know if you're still experiencing issues after that?

```
ssh-keygen -R bitbucket.org && sed -i.old -e '/AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/d' ~/.ssh/known_hosts && curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts
```

If you're still experiencing issues, can you please let me know:

**1.** Do you see this error when doing Git operations from command line? From a Git GUI application? Or from a CI/CD application?

**2.** If you are not doing the operation from command line, which application are you using? And what SSH client does this application use?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Personal Access Tokens for BitBucket Cloud
Asked by Bojan Velevski:

Hello experts.

Is there a way to use personal access tokens to access a cloud BitBucket instance?

I'm currently using an OAuth2 authentication type, on the 2.0 API and it's working fine, but I'll need some personalized access.

Regards,

Bojan


Answers:
author: Theodora Boudale
body: Hi Bojan and welcome to the community!

You can generate an app password for this purpose:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

An app password can be used along with your username (which you can find here: <https://bitbucket.org/account/settings/>) for basic authentication over HTTPS.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot Log In via Git GUI on Windows
Asked by JakeBin:

I'm having some trouble logging in via the Git GUI popup on Windows. I'm trying to run the following command:

```
git clone https://UserName@bitbucket.org/UserName/Repo.git
```

Where "UserName" and "Repo" are filled in, as provided by bitbucket.org.

I have created an app password for my computer and have it copied to my clipboard.

When I try to run the git clone, I get the GUI login below:

![GUI.PNG](/t5/image/serverpage/image-id/53531iCC404FAF25AEC5CF/image-size/large?v=v2&px=999 "GUI.PNG")

Pasting my app password straight from the BitBucket site and hitting "Log in" fails twice. On the third time, it simply asks me for it on the regular command line, at which time I hit paste, and it works just fine.

The problem is that when I try to run "yarn install", it tries to pull from a different private repository which I have added, and since the password isn't properly saved, the yarn install fails. Why didn't the password work on the GUI?


Answers:
author: Ana Retamal
body: Hi Jacob, and welcome to the Community :)

When you're trying to log in via the GUI, have you tried to enter your regular Bitbucket password instead of the App Password?

I can see that the pop up is mentioning both Bitbucket and Sourcetree, can you confirm if you have Sourcetree installed? If so, can you check if the credentials you've saved there for Bitbucket are the right ones?

Let us know so we can continue helping you with this issue!

Kind regards,

Ana

comments: author: JakeBin
body: Thank you very much for responding!

Regarding the first suggestion, I log in to my account via my Google account, so I don't think I actually have a password set for the account itself - that's why I was using an app password instead. Is there a way to reset the account's base password when signing in via Google?

Regarding the second suggestion, I do have SourceTree installed on this computer. However, it has no accounts listed under Tools -\> Options -\> Authentication tab.

Finally, doing some research, I found that Windows can manage some credentials for the user - I made sure under the Credentials Manager in the Control Panel that there were no saved credentials referencing BitBucket.org.


Tags: bitbucket
AutoCommit Message saying "Merge branch 'X' of URL into X " after rebasing from source tree
Asked by suresh.ningappa@mokapos.com:

Please help me to avoid this commit message**Merge branch 'X' of URL into X** when I do rebase by following steps   

1. Current branch X checked out and Right click on Develop branch --\> clicked on **Rebase current changes onto develop**
2. Started resolving conflicts and **Continue rebase** from to bar **Action.**
3. At end of rebase I got **A-Ahead** and **B-Behind**
4. I resolved **A-Ahead** and **B-Behind** by first **pull** and **push**
5. When I pull and push automatically the commit message added to current branch  
   **Merge branch 'X' of URL into X.**   

   <br />

   Why the message merge even though I am doing rebase?


Answers:
author: bgannin
body: Hi [suresh.ningappa@mokapos.com](/t5/user/viewprofilepage/user-id/2449700),

This isn't specified by Sourcetree, it's coming from Git. It sounds like the branch might be out of sync and pushing causes it to be resolved with a merge (this is often how out of sync issues are resolved in a rebase)

Brian Ganninger  
Principal Developer, Sourcetree
PUSH - fatal: unable to access ... Why did this start happening?
Asked by James Burdick:

SourceTree 3.1.2 (even attempting pushing using Git GUI/CMD trying to bypass SourceTree... issue still happens) Was working fine... then this. Seems like server issue.  

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin \<Branch Name\>:\<Branch Name\>  
fatal: unable to access 'https://\<user\>@bitbucket.org/\<team\>/\<repo\>.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054  
Pushing to https://\<user\>@bitbucket.org/\<team\>/\<repo\>.git  
Completed with errors, see above.


Answers:
author: Mikael Sandberg
body: Hi James,

Welcome to the Atlassian Community.

At the moment it looks like there are some issues with Bitbucket and SSH, please have a look at <https://status.atlassian.com/>. You can also subscribe to the products and/or services you want to be notified about if there are any issues in the future.

comments: author: James Burdick
body: Hi Mikael,

Thanks for the info and the quick response.

This did seem to be more on the bitbucket side of things, as I mentioned with my testing through git directly and bypassing sourcetree. A few minutes ago, when I was navigating the site. I did end up seeing a similar notification on one of the pages saying there was a known issue.

I'll chalk this up as the answer, as it appears to be a known issue.

Thanks again for your help.


Tags: error

push

ssl
Stage/Commit same change across multiple files
Asked by ta946:

I have a repeated functioned across 90 files, sometimes they are in the exact same line number and spacing aswell.  
I made a change the the function that applies to all 90 files. But now i have to go through each file 1 by 1 and stage the change. This wouldnt be a problem if there were no other changes in the files as i could just stage all. but since there were uncommited changes i dont want to commit randomly.  
Is there a way to commit/stage the same change across multiple files?

(using windows)

![Untitled.png](/t5/image/serverpage/image-id/53521i1A7925DA5EAD5ECE/image-dimensions/458x323?v=v2 "Untitled.png")


Answers:
author: bgannin
body: Hi [@ta946](/t5/user/viewprofilepage/user-id/3133250),

There isn't a way to stage similar changes across multiple files in Sourcetree via the UI. You might be able to whip up a CLI script if the task is too tedious or you find yourself doing it more than every great once in a while.

Brian Ganninger  
Principal Developer, Sourcetree
Sourcetree translation DUTCH
Asked by Tolga Kavi:

I translated the remainder on Transifex from english to dutch.  

Both Labels and Messages are 100%  

Could the team pick this up, or anyone able to help me on how to use the translation file myself?  

I created a support ticket and got a response that made me feel not taken seriously about my questions and issues translating my sourcetree install or future installs into my own language.


Answers:
author: Ana Retamal
body: Hi Tolga, welcome to the Community!

First of all, thanks for taking your time to translate Sourcetree into Dutch, we wouldn't be able to do this without your help. I'll reach out to the Sourcetree team to know more about the next steps and how to integrate the translation in the product.

Secondly, you said that you had submitted a support ticket and the response you got let you a bit disappointed, could you share with us the reference number? I'd like to see what happened and make sure this doesn't happen again in the future :)

Also, for your reference, Sourcetree receives support exclusively via the Community, so next time you can reach out to us here directly.

Looking forward to your response,

Ana

comments: author: Tolga Kavi
body: Good Morning,

I got the reference number for you:  
**CA-700219**

Regards,

Tolga Kavi


author: Ana Retamal
body: Hi Tolga,

I reached out to the Sourcetree developers and they advised me on the next steps. I've submitted a ticket for them to add the Dutch translations to Sourcetree. You can find this request at [SRCTREEWIN-11724](https://jira.atlassian.com/browse/SRCTREEWIN-11724).

I've checked the ticket you created and I can see that they only sent you a standard response directing you to answer your questions here, they didn't mention anything else about your translations. In this case, that's the best thing they can do as support for Sourcetree is only offered via this channel and they're not capable to provide assistance for this software.

If you have any questions regarding Sourcetree in the future, the Community is the place to go :)

I hope that helps you, Tolga!

Kind regards,

Ana


Tags: windows
??????????????
Asked by ????:

?????????SourceTree??????????????????????????????????????????????????????????

???Wi-Fi?????????????????????????????????

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

![????????? 2019-05-02 12.14.21.png](/t5/image/serverpage/image-id/53253i6E8B8A8882CF8CFB/image-size/large?v=v2&px=999 "????????? 2019-05-02 12.14.21.png")![????????? 2019-05-02 12.14.28.png](/t5/image/serverpage/image-id/53254iA256E47DEF52785F/image-size/large?v=v2&px=999 "????????? 2019-05-02 12.14.28.png")


Answers:
author: Ai Hirama
body: ?????????????????????????

????Windows?????????????????????????????

* IE??????????????????IE?github????????????????
* ????????????Chrome???????

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


Tags: language-ja
Malwarebytes detects Sourcetree as MachineLearning/Anomalous 97% malware??
Asked by Matthew Bossard:

Is this a false-positive? Please advise...

![2019-05-01 11_21_18-Window.png](/t5/image/serverpage/image-id/53213i0A39B43802ACABC4/image-size/large?v=v2&px=999 "2019-05-01 11_21_18-Window.png")


Answers:
author: Nic Brough -Adaptavist-
body: It is a false positive. Sourcetree is not malicious.


Tags: windows
SourceTree crashing
Asked by ngaikwad1610:

Version 3.2 (latest)

Operating System Windows 7 Enterprise SP1 64-bit

As soon as I open a repository it crashes. Message in the log file is

Input file or data stream does not conform to the expected file format specification


Answers:
author: Mike Corsaro
body: Hello! It sounds like a system file might be corrupt (the only result I could find on the internet references text and font files). Could you try the [steps listed here?](https://support.microsoft.com/en-us/help/929833/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system)

Thanks!


Tags: windows
Trying to connect SourceTree to new bitbucket instance
Asked by Rick Dienel:

Previously my SourceTree app has been able to successfully connect to a local Gitlab server, using a gitlab generated token. When I attempted to do the same to our local BitBucket server, with a token from that server, get a message "Unable to connect to BitBucket Server with your credentials....."

See attached screenshots.

THanks![ErrorBB.png](/t5/image/serverpage/image-id/53146i2B988734AE873E96/image-size/large?v=v2&px=999 "ErrorBB.png")

\[Edited to remove screenshots that contained sensitive information\]


Answers:
author: Ana Retamal
body: Hi Richard,

I can see in your screenshot a username and a very long password which seems to be a personal access token, is that correct? Are these the credentials you're trying to use to connect Sourcetree to Bitbucket Server?

Are those the same username and password you use to log in to your Bitbucket Server instance? If not, have you tried to use your personal credentials? Do you get any errors?

If those shown in the screenshots are your credentials, please change them as soon as possible as this is a public forum and anyone could have copied them. I've removed the screenshots from your message for your security.

For more information about using Bitbucket Server and Sourcetree, you can also see [this article.](https://confluence.atlassian.com/bitbucketserver/set-up-sourcetree-to-work-with-bitbucket-server-776798217.html)

Let us know how that goes!

Best regards,

Ana


Tags: bitbucket

token
Cannot change username of github repository on Souretree when trying to push a commit
Asked by ronamc:

I accidentally put the wrong username for the github host account linked to my sourcetree and I cannot reset the username... I am only given the option of reinputting a password but not a new username. I have reset my cached passwords and have even added the actual username (Sourcetree \> Settings on the top right \> Remotes \> Double Click on Repository \> Add username). I still get the incorrect username to populate when I try to push the commit.


Answers:
author: minnsey
body: Hi  

If you are having errors pushing then it is an issue with your GitHub account and you probably want to open Tools/Options/Authentication tab and edit or delete and recreate your GH credentials their.  

If it is about the author information used in your commits, then you want to reset that information in Tools/Options/General tab
How to add multiple local repositories at once into SourceTree Windows version?
Asked by Aleksey Guryanov:

I have a folder in which I have a couple of dozens of sub-folders, each with it's own project versioned with git, something like this:

* projects:
  * project_a
  * project_b
  * ...
  * project_z

I would like to add them all in a SourceTree in some folder.

In OSX version there is a way to do that, but I cannot find how to do it in Windows version (I have version 3.1.2 installed if it matters).

Do anybody know how to add all repositories from a given folder into SourceTree at once?


Answers:
author: Mike Corsaro
body: Hello! You can select all the folders and just drag them into the Local Repos tab in a New Tab. It should just add all of the repos.

comments: author: Daniel Guo
body: Hi Mike

I just tried it but it doesn't work for me.


author: wfreeman
body: Adding that this does not work for me either.


author: flibustier7seas
body: It works, but in a very non-obvious way. It is seems like a bug (SourceTree version 3.4.9).

You should move the folders to the **lower border of the "Search" input field** on the tab "Local repositories".


author: emerald_hieu
body: Drag and drop works for me (Source Tree 4.2.4). However, there's a UI issue; **the directories can't be renamed**.


Tags: windows
Trying to get a bitbucket cloud account
Asked by Matt Pupa:

Hello,

My team is trying to integrate source tree with bitbucket. For some reasons, I can't clone the repository from bitbucket server to my local machine. The person who has been spearheading this effort for our team thinks I need a cloud account. I've tried looking on ways to get a cloud account, and event delete my account, so I can start over. Unfortunately, I haven't had any luck yet with this.


Answers:
author: minnsey
body: Hi  

You do need to register Sourcetree, either with a Bitbucket (Cloud) or Bitbucket Server account, but that should not directly effect your ability to clone.  

Once registered you can add additional accounts.  

Once registered, or with any additional accounts, those accounts can be used to list repositories on the remote host and you can clone from that list.  

Alternatively you can just clone directly using the repositories URL or use the Clone in Sourcetree option from within Bitbucket.  

Ultimately you can also clone from the command line Git and then add that existing local repository to Sourcetree.  

From what you describe it sounds like you *have* registered and are able to open Sourcetree, the problem then comes when you try to clone? How are you trying to clone and what errors do you get?


Tags: bitbucket-cloud

bitbucket-server