youngmon/atlassian-qna huggingface dataset:
Get my user's Atlassian account ID
Asked by Ronny Orot:

Hi,  
I'm trying to find a way to get my user's 'Atlassian account ID' from the Bitbucket or Atlassian UI.  
Is there a way to do that?


Answers:
author: Caterina Curti
body: Hi all,

I just wrote this article about how to retrieve the users' Atlassian Account ID for Bitbucket Cloud in two different use cases:

[Retrieve the Atlassian Account ID (AAID) in bitbucket.org](https://community.atlassian.com/t5/Bitbucket-articles/Retrieve-the-Atlassian-Account-ID-AAID-in-bitbucket-org/ba-p/2471787)

Caterina


author: Vedant Kulkarni
body: [@Ronny Orot](/t5/user/viewprofilepage/user-id/5147723) , fire the REST API https:\<base-url\>/rest/api/2/myself and you will receive the JSON response which will contain the Account ID

comments: author: Ronny Orot
body: Using the API is a little too complicated in my case since I'll also have to create an access token.  
I wish it was just mentioned somewhere in the UI. In GitHub and Gitlab and even BBS it's super easy to get the user identifier.


author: Ronny Orot
body: Found a way without creating an "App password".  
All you have to do is be logged in to Bitbucket and then navigate to the link '<https://bitbucket.org/!api/2.0/user>'.  
The JSON will include your Atlassian account ID in the field called 'account_id\`.  


author: Jeroen Poismans
body: [@Ronny Orot](/t5/user/viewprofilepage/user-id/5147723)

Indeed, that's the equivalent of the REST call [@Vedant Kulkarni](/t5/user/viewprofilepage/user-id/1734051) was talking about (GET request in the browser) with credentials (because you're already authenticated).

Good that you found it!

Regards,

Jeroen


author: Jeroen Poismans
body: Hi,

Referring to a community post here:  
<https://community.atlassian.com/t5/Jira-questions/where-can-i-find-my-Account-ID/qaq-p/976527>

Hope this helps!

Jeroen

comments: author: Ronny Orot
body: This answer is related to Jira.  
I tried doing the same in Bitbucket and searching for the URL in different 'profile' pages, but found nothing related to the Atlassian account ID.


Tags: bitbucket-cloud

cloud
I want to deploy to s3 with compression
Asked by xicond:

I'm using atlassian/aws-s3-deploy pipeline to deploy to s3, and using cloudfront  

But sadly cloudfront doesnt compress images, so I'm wandering whether atlassian/aws-s3-deploy pipeline can compress and add encoding header


Answers:
author: xicond
body: Nvm,

I found the answer, I compress it myself

```
find $(realpath ./build/static/images) -name "*" -type f -exec sh -c "gzip -c9 '{}' > '{}.gz'; mv '{}.gz' '{}'" \;?
```

and deploy aws-s3-deploy with

```
CONTENT_ENCODING: 'gzip'
```

the problematic need to careful is when I use extra args filtering

```
--exclude *
```

which work fine if I execute

```
aws s3 sync
```

directly,

which somehow not exactly same as I expected in the pipe, then I need use

```
DEBUG: 'true'
```

to see what's happen, and found it need to use this style

```
--exclude=*
```


author: Patrik S
body: Hello [@xicond](/t5/user/viewprofilepage/user-id/16360) ,

Thank you for reaching out to Atlassian Support.

What the pipe [atlassian/aws-s3-deploy](https://bitbucket.org/atlassian/aws-s3-deploy) is essentially doing is executing the ***aws s3 sync*** command, with the arguments you pass as variables for the pipe.

Looking at [AWS's CLI s3 sync documentation](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/sync.html), it doesn't look to provide any argument to enable compressions of images, so I think this is not currently supported by that AWS command.

In this case, you would either have to execute the compression before executing the pipe atlassian/aws-s3-deploy , or implement something on AWS side, such as a Lambda function, to compress the images after they were uploaded. I found the following article that might be relevant to your use-case :

* <https://www.howtogeek.com/devops/how-to-automatically-compress-images-in-s3-with-lambda/>

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

Thank you, [@xicond](/t5/user/viewprofilepage/user-id/16360)

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Are you aware of these bugs? Bug reports for Sourcetree for Mac. Version: 2.7.6
Asked by Andy Triboletti:

Are you aware of these bugs? Bug reports for Sourcetree for Mac. Version: 2.7.6  

<br />

1. When you have a very big amount of "Unstaged files", if you select them all and click remove the app crashes. I have these files from switching branches.  

2. "Installation failed" "Unable to install command line tools, please refer to the system logs for more details." Where are the system logs?  

Are these crashes/system error messages submitted to you automatically? If they aren't, would you consider a link in help that would let you submit a crash report?

<br />

?Thank you so much for the free tool.  

-Andy


Answers:
author: Nic Brough -Adaptavist-
body: I think they know about them. Check out <https://jira.atlassian.com/projects/SRCTREE/issues>


Tags: mac
login required for every push
Asked by anthonydunford:

I have authentication through Google which has been approved. But every time i attempt to push to a repository it requires me to login. I have followed the suggested fixes to no avail.

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


Answers:
author: bgannin
body: I think you're running into this [known issue](https://community.atlassian.com/t5/Sourcetree-discussions/dev-team-Known-Issue-Bitbucket-Login-with-Git-Credential-Manager/m-p/863235).
Sourcetree is asking atlassian login. Refreshed oAuth, typed userid/password, nothing works.
Asked by CloudFrames:

Login through chrome works but can't login to source tree during pull or push of remote git on bitbucket.

Frankly, it is quite annoying that my userid/password that works on chrome doesnt work on source tree. Also tried going to account setting to refresh oAuth token and that works but still during push or pull a login window pops up. I can't proceed any further.


Answers:
author: Ana Retamal
body: Hi Venkat, welcome to the Community.

Do you use Windows?

There's a bug with Windows Git authentication and Bitbucket. The older version of GCM that shipped with Git has a bug with Bitbucket. It seems to be partially fixed in GCM 1.17.0, but 2FA won't be fixed until 1.17.1.  
Our developers have submitted fixes to MS and are waiting for them to ship. We are about to start a private beta with a large amount of change and it will end up bundling the fixes as soon as they are available. This has been completely unexpected and our developers are working hard on it to get it fixed as soon as they can.

Thanks for your support!  
Ana
Why Is it not possible create a repository group under other one in SourceTree Windows Version?
Asked by luizponce:

The feature to create a repository group under other one is only support in MacOS Version and Windows Version before 2.0

I would like understand why it was happened...

thanks


Answers:
author: bgannin
body: This was a conscious design choice. That said, we are discussing the logic and replacement options in [this thread](https://community.atlassian.com/t5/Sourcetree-discussions/dev-team-Proposed-Sidebar-Replacement-for-Windows/td-p/802582).

Brian Ganninger  
Product Manager, Sourcetree


Tags: bitbucket

windows
Error pushing code to Git
Asked by Nouvelle Annee:

Github prompted me to change my password yesterday which I did. Since then, I am having trouble pushing from sourcetree to github. I have tried updating my credentials when prompted and have had no luck. Can anyone help me figure out how to solve?

The error I get is:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin feature/Code-Academy-Exercises:feature/Code-Academy-Exercises  
Fatal: AggregateException encountered.  
remote: Invalid username or password.  
fatal: Authentication failed for '<https://github.com/sonalimarlin/TG-Pre-Work.git/>'  
Pushing to <https://github.com/sonalimarlin/TG-Pre-Work.git>

Completed with errors, see above.


Answers:
author: Mike Corsaro
body: Hello! You might need to upgrade your version of the Git Credential Manager:

<https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.1>


Tags: github
How do I disable pipelines in SourceTree
Asked by CharlieC:

While I appreciate the integration of pipelines in SoureTree it's also a complete resource hog on MacOS and will happily run my CPU at 100% for hours. Is there anyway to disable the reporting so that I don't keep having to close SourceTree?


Answers:
author: Manju
body: You can Hide Build status column from the View Main Menu

![](blob:https://community.atlassian.com/cfec7254-27c3-473f-9184-cfe6128980a4)

comments: author: CharlieC
body: Thanks! I couldn't find this, though I admit to trying settings and right-mouse clicking on the interface.

Do you know if this will reduce the CPU load that the integration, hopefully only currently, triggers? Guess I'll find out when I make my next push.


author: Pawe? Philipczyk
body: Do you know why does this take up so much CPU?


Tags: bitbucket-pipelines
SourceTree fails to install
Asked by pi_mig_25:

I have tried to install the latest version of sourcetree, but it gives the error

sourcetree has stopped working .

I checked the log file and it shows the following error

ERROR \[2018-08-03 11:47:23,937\] \[1\] \[SourceTree.App\] \[.ctor\] - finish EnsureSquirrelExecutionStubIsCopied

So tried to add this setting to the user.config file.

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

It still does not work, where am I going wrong, is there any other way?

regards


Answers:
author: Ana Retamal
body: Hi Piyush,

Please navigate to the config file location (C:\\Users\\{USERNAME}\\AppData\\Local\\Atlassian\\SourceTree.exe_{RANDOM_GUID}\\2.3.1.0\\user.config) and find the following line:

\<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String"\>

\<value\>True\</value\>

\</setting\>

Make sure that value is set to ***True***

Let us know if it worked for you!

Kind regards!

Ana

comments: author: pi_mig_25
body: Hi Ana,

I did not have the setting present, so I added the setting in the user.config file. the problem still remains though

regards,

Piyush
SourceTree: Bitbucket GIT SSH connection refused for pulling and pushing
Asked by Taryn Mervis:

Hi Team,

We are currently experiencing a problem that started yesterday sometime, where we are unable to push or pull any of our bitbucket git repositories via SSH in sourcetree we keep receiving the following error:
> git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  
> FATAL ERROR: Network error: Connection refused  
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights  
> and the repository exists.

We have only ever connected via SSH and have never experienced a problem until yesterday. If we change over to HTTPs we are able to pull the repositories without any issues. Further this issue is not consistent there are times when everything works and we are able to push and pull as expected and other times where we receive the error constantly. We have found that if we restart sourcetree or putty agent we are able to push and pull however after sometime we start receiving the above error again. Please can you assist in helping see why we are getting this issue all of a sudden.

Kind regards,

Taryn


Answers:
author: Mike Corsaro
body: Hello! I'll need a bit more information:

* OS
* Version of Sourcetree
* Version of Git

In the meantime, try removing your SSH key from Bitbucket, and try adding a new one. Make sure your SSH key is loaded into Putty.

comments: author: Taryn Mervis
body: Hi Mike,

Sorry for the late reply as requested please see the below information:

* OS: Windows 10 Pro2.
* SourceTree Version: 2.6.93.
* Git Version: 2.18.0.windows.1

However this issue is affecting all our developers and we are on a mix of Windows 8.1 and Windows 10.

I also tried you suggestion of adding as new SSH Key however I am still experiencing the above mentioned issue.


author: Taryn Mervis
body: Hi Mike,

Please note we have since resolved this issue. It was discovered that the issue was due to an IP randomly being blocked by our firewall at various times.

Kind regard,

Taryn


author: Jeff Mihalsky
body: Has anyone seen this working from home? I see many posts similar with very little resolution.

Jeff


author: Martin Polar
body: I am having a similar issue. I am working from home. Other developers are able to push and pull successfully. I am able to pull (but not push). I am beginning to wonder if our firewall is blocking my IP address.


author: Jeff Mihalsky
body: I did not have issues until a month ago and feel like things don't work as well with changing to SSH. I have not seen anything related to personal firewalls, just corporate network firewalls. I also don't see anything helpful from Atlassian on this either.


author: Martin Polar
body: Turns out there was a change made with our corporate firewall that was the culprit.
Cannot commit. There is a file in the staging area that look like "file1 -> file2"
Asked by Peter Oppenheimer:

I am not sure how that happened but when I try to stop tracking or remove, I get an error

fatal: pathspec 'file1 -\> file2' did not match any files

Any idea of what file1 -\> file2 even means?

Thanks.

Peter


Answers:
author: Peter Oppenheimer
body: This is in Sourcetree BTW
Where is the user manual for Sourcetree?
Asked by Tom:

Attempting to use Sourcetree for the first time. I am not able to find a user manual. There is no Help available onscreen.

As part of the setup I need to login to the bitbucket server. It asks for a URL but does not provide any specification or example. I have gone to my local bitbucket server and used the Clone function to obtain the URL of the repository. It has the form http:// USER @ Server IP address/Project/repository

When I try to use this in Sourcetree it gives the error - Invalid URL:The hostname could not be parsed.

What format is it looking for if not the format produced by Bitbucket?


Answers:
author: Tom
body: I can access and traverse the repository via my web browser with no problems. Works great.

I am using my email address to log in. Sourcetree does not give any indication of an authentication error.

When I copy the URI from my browser into Sourcetree, do I need to modify the URI in any way?

Could it be that the corporate firewall is blocking access to the particular port? i.e. does the web browser access the repository on a different port than Sourcetree? When I did a netstat I see that my machine has Established a connection to \<server IP address\>:http. I do not see any other connections (ports) to the bitbucket server.

Any suggestions?

comments: author: Mikael Sandberg
body: Okay, so it is the @ in your email address that is causing it. I discovered it a couple of months ago when we switched to use our email addresses as user names in order to prepare for a AD migration. Here is the bug I logged for it, [SRCTREEWIN-8648](https://jira.atlassian.com/browse/SRCTREEWIN-8648).


author: Tom
body: Thank you for the explanation. This was very helpful.

It looks like Sourcetree is not usable in my environment. I will just go back to using my web browser.


author: Tom
body: I have reviewed the - Get started with Sourcetree - manual. However, the manual does not have any information regarding the "Login to Bitbucket Server" screen The screens shown in the manual do not correspond to the screens shown in Sourcetree 2.6.10.0

I have tried logging in using:

* http://IP address of server/project_name at the root of the repository tree
* http://IP address of server/project_name/specific_repository_name
* http://IP address of server/project_name/specific_repository_name:7990
* http://IP address of server:7990
* http://IP address of server

In every case Sourcetree returns the error - Invalid URI: The hostname could not be parsed.

Any tips on how to debug this? This is turning into a huge waste of time.

comments: author: Mikael Sandberg
body: Have you tried just entering the URL into a web browser to make sure you can reach Bitbucket? Also, do you use an email address as your user name?


author: Mikael Sandberg
body: Hi Tom,

Welcome to the Atlassian Community.

You can find the user manual here, [Get started with Sourcetree](https://confluence.atlassian.com/get-started-with-sourcetree). The root URL is the same URL you use to access Bitbucket from a web browser, for example [http://bitbucket.mycompany.com:7990](http://bitbucket.mycompany.com:7990/)
Add bitbucket account fails - flow issue
Asked by oliv:

Hello,

I downloaded the latest version of Sourcetree on a brand new Mac.

When trying to add a bitbucket account (Sourcetree preferences -\> Accounts -\> Add), I authenticate correctly to the service (2 factor oauth with https) but their is no button to save the account. I can navigate my account in the windows I couldn't find a way to save the account. The only button at the bottom right is cancel.

Thanks,

-Oliv


Answers:
author: Manju
body: Hi [@oliv](/t5/user/viewprofilepage/user-id/1743205),

We are aware of an OAuth sign in issue with Bitbucket and are working to get a fix soon. In the meanwhile, I would recommend you to use an app password generated on Bitbucket as basic auth password in Sourcetree and continue adding your account. This works for both REST API and git actions in Sourcetree.

[More about App Passwords](https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html)

Thanks,  
Manjunath  
Sourcetree Mac Developer


Tags: mac
Subproject commit not showing in remote master
Asked by Cam Evenson:

I attempted to do an update to my remote repository and it was not committed. Bitbucket has decided to post my code as a subproject. It is a secondary Project within the parent folder. How do I get these changes committed to the remote repository? I am using SourceTree and the Bitucket Extension for Visual Studio 2017. I am really green with BitBucket.

![Submodule commit.jpg](/t5/image/serverpage/image-id/28530i5ECAC00052DBC799/image-size/large?v=v2&px=999 "Submodule commit.jpg")


Answers:
author: Mike Corsaro
body: Hello! It looks like those changes were actually pushed to the remote server (that line about 'Subproject commit' means that the subproject changes did get committed), but to verify you can always just open the submodule/subproject by double-clicking it in the sidebar. It should open the repository, and you can commit and push from there.


Tags: bitbucket

bitbucket-server

project

server
I am unable to login my bitbucket account using sourcetree.
Asked by ayush021190:

It says "The Url ....... returned code not found.

I think so there is an issue with Root URI.

Please help me.


Answers:
author: Ana Retamal
body: Hi Ayush! We'll need more information to help you solve this issue:

1. Are you able to log in to Bitbucket directly from the browser?
2. In which step are you stuck? Is that during the initial set up?
3. Are using Bitbucket Cloud or Server?
4. What URL are you using?
5. Can you send a screenshot of where you got stuck and the error you get?

Let us know!  
Ana


author: Manju
body: Are you on macOS or Windows? And what specific version?

What version of Sourcetree are you using?

What action are you trying to perform?


Tags: bitbucket

windows
How to login to sourcetree/atlassian with okta?
Asked by Chris Pearce:

Sourcetree is now forcing a login to atlassian however we use jira/confluence etc. via an okta integration.

How can I login to sourcetree?


Answers:
author: Mohammad Miryani
body: You can use this <https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html> to create an app password for source tree. My users had had the issue and we bypassed it by creating app password. In fact, not every single app supports OKTA's sso.

comments: author: Dan Violet Sagmiller
body: I used this, but for some reason, every week(ish) the app passwords are changed, and source tree loses access again, and I have to generate another pass key. (trying the SSH key next)


author: Atul Khatri
body: We are facing similar problem. It just shows the repositories when I add a bitbucket account to SourceTree via Okta credentials.

comments: author: Atul Khatri
body: Any update on this??


author: Atul Khatri
body: Finally I started using SSH method to login to sourcetree. Quite frustrating to see such issue exists.


author: Dan Violet Sagmiller
body: I agree. Though I am starting to see this as a SourceTree Issue. I.e. Sourcetree should support Okta, and if it did, that should alleviate the issue here. Or at least that would point the issue back at Atlassian, if their API's don't support 3rd party Okta logins. (but I assume they do)


author: Mohammad Miryani
body: The same issue here! I created an App Password but no success yet. Any advice?


author: Ana Retamal
body: Hi Chris, welcome to the Community :)

As you said, you need to have an Atlassian account to register Sourcetree upon installation. If you have a Bitbucket account, that means you already have an Atlassian account (they share the same credentials). If you don't you can create your Atlassian account via [My Atlassian](https://my.atlassian.com/products/index).

Let us know if this helps!

Best regards,

Ana

comments: author: Chris Pearce
body: I can only access our atlassian products from our okta login. Ie. I log into okta, and then I can go to jira/confluence. However sourcetree is not an okta application I can access so how do I access sourcetree when I can only login to my atlassian account with okta?


author: Dan Violet Sagmiller
body: Anyone find a solution yet?


author: Atul Khatri
body: Unfortunately Atlassian is not interested in fixing this issue. Did you try logging in through SSH key? I did the same and it works perfectly fine.


author: Dan Violet Sagmiller
body: I have not. I used atlassian to generate a new password, specifically for Sourcetree options, but it seems Okta forces a refresh every week (ish) which invalidates the stored passwords. I will try the SSH Key next.

- Thanks.
How do I clone a Bitbucket repository using Sourcetree?
Asked by SRizea:

I'm using Sourcetree for Windows 2.6.10. I connected Sourcetree to my Bitbucket account via OAuth. The connection is made and I can see my repositories. However, when I try to clone one, I get the following error:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://SRizeaDRT@bitbucket.org/deepreachtechnology/matlab-air-lift-code.git  
Output:  
Error: fatal: TaskCanceledException encountered.  
A task was canceled.  
remote: Invalid username or password. If your organization manages your account or you've enabled two-step verification, create an app password to log in: <https://confluence.atlassian.com/x/9DJmMQ>  
fatal: Authentication failed for 'https://SRizeaDRT@bitbucket.org/deepreachtechnology/matlab-air-lift-code.git/'

Might this have something to do with the fact that I now need to log into Bitbucket with my email instead of my username? It may be coincidental, but Sourcetree lost the ability to communicate with my Bitbucket repositories the same day that the Bitbucket web page told me I could no longer log in with a username.


Answers:
author: SRizea
body: I managed to fix the problem. A complete uninstall of Sourcetree (via the directions here: <https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-fully-remove-SourceTree-so-that-I-can-do-a-quot-fresh/qaq-p/605355>) and reinstallation worked.