youngmon/atlassian-qna huggingface dataset:
Permissions for projects and repositories
Asked by Christian Fuchs Test 3:

Hello,

I'm currently looking at Bitbucket in the cloud and have already created projects and repositories.  
Can permissions in Bitbucket only be granted at repository level? We need project level permissions. Example: There is a project with \> 50 repositories. It does not make sense to assign permissions individually for each repository. How can permissions be assigned to a project so that they are inherited by all the repositories it contains?

Best regards  
Christian


Answers:
author: Charly [DEISER]
body: Hi Christian,

Not right now, but it seems this is going to be added very soon. You can review all the info here: [Taking Bitbucket permission management to the next... - Atlassian Community](https://community.atlassian.com/t5/Bitbucket-articles/Taking-Bitbucket-permission-management-to-the-next-level/ba-p/2264892).

You can keep track here: [\[BCLOUD-13202\] Allow user to manage repositories access with Project Permissions - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/BCLOUD-13202)

Regards!


Tags: bitbucket-cloud

cloud
Whats the best way to retrieve email IDs of code authors or reviewers using APIs being an admin?
Asked by CanS:

Hello,

I am working on an automated API solution and one of the issues I'm blocked with is unable to find email IDs of the code authors or reviewers from API even though being an admin on BitBucket Cloud workspace.

I can see the users and emails from Settings -\> User Directory and exporting the list manually. But I'm looking for an API solution so I can process the data and automate next steps. Please suggest me any example endpoints calls or calls that can help here.

Thanks!


Answers:
author: Patrik S
body: Hello [@CanS](/t5/user/viewprofilepage/user-id/5105795) ,

Thank you for reaching out to Atlassian Community!

I'm afraid the e-mail address of users is indeed not currently returned in our public API endpoints. As you mentioned, the workspace members' email addresses are only available through the [Export a list of workspace members](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Export-a-list-of-workspace-members) in the UI.

I went ahead and raised a feature request to add the ability to retrieve workspace member emails via API (for admins), which you can access in the following link :

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

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.

Patrik S

comments: author: CanS
body: Thanks for the response and yes please that needs to be a feature with API so developers can pull data and process it for automation reasons.


Tags: api

bitbucket-cloud

cloud

email
How can I handle this error?
Asked by admin admin:

NOTE: I have had SourceTree running in the past, and I have no idea why this error is being thrown;

Application installed (and operating previously); Atlassian Sourcetree 2.6.10.

Error being thrown when the application is launched;

{

This application requires one of the following versions of the .NET Framework:

.NETFramework,Version=4.7.1

Do you want to install this .NET Framework version now?  
}

When yes is clicked to; Download the .NET Framework 4.7.**2** from the provided web page,  
the application ( NDP472-KB4054531-Web.exe ) returns the following;

{

Details

.NET Framework 4.7.2 or a later update is already installed on this computer.

}


Answers:
author: admin admin
body: This issue was caused, in my case, by Windows 10 update *fly-by-night* installations resulting in an update to .NET;

This issue was resolved by changing the .NET Framework version explicitly identified in the C:\\Users\\XXXX\\AppData\\Local\\SourceTree\\app-2.6.10\\***SourceTree.exe.config*** file;

Modify Line 17: \<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/\>

with v4.7.2 as below;

\<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.**2** "/\>  

Moving forward, it may be valuable to add a function, which validates the version being used, and *automatically* updates itself according to the installed version of .NETFramework; adding 1 to the posterior version and validating again (with a limit of some kind added so that the application doesn't spin into a perpetual loop);  
<https://docs.microsoft.com/en-us/dotnet/core/versions/>

comments: author: admin admin
body: Likewise a quick logical step could be to check what version is installed (4.7.2), and if greater than expected version (4.7.1), to modify the configuration file; ***SourceTree.exe.config*** to the installed version.

This assumes that .NET AND SourceTree are both programmed to be version agnostic internally.


author: admin admin
body: <https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed>
I can't connect my new sourcetree account to my new github account, any ideas?
Asked by Conner Elliott:

I am just starting an internship and I have to create a github account and a sourcetree account. I did so but now when trying to combine my github account onto the sourcetree application, it says "authorize atlassian" but is grayed out and I can't seem to get it figured out. Any ideas?


Answers:
author: Manju
body: Is this on the windows client or macOS? What version of Sourcetree are you using?


Tags: github

mac
SourceTree stuck on set-up
Asked by ElwinBuisman:

SourceTree is stuck on the set-up screen after installation. Clicking the 'Ga Verder' (Continue) button doesn't do anything. I cannot finish the setup. I can close set-up by clikcing the 'x'.

![Schermafbeelding 2018-09-24 om 11.42.03.png](/t5/image/serverpage/image-id/33071iE4C9A73D8B097234/image-size/large?v=v2&px=999 "Schermafbeelding 2018-09-24 om 11.42.03.png")

I did find a work-around: When restarting SourceTree, i can cancel the set-up immediately. Then it will show the bookmarks panel. When closing the application, the set-up is back.

Tried to fix the problem by completely removing it from my system and doing a reinstall. Problem persists though ...


Answers:
author: Manju
body: Looking at the screenshots, it does look like its on the macOS. Can you please confirm?

Would you mind trying the new beta with an improved on-boarding? You can find the details here - [Sourcetree 3.0 branches out with new hosting services](https://blog.sourcetreeapp.com/2018/08/29/sourcetree-3-0-branches-out-with-new-hosting-services/)

comments: author: ElwinBuisman
body: Thanks for your reply;

It's macOS indeed. Will try the beta as you suggested.


author: ElwinBuisman
body: Problem solved!


author: Manju
body: Great! Thanks for trying and I'm glad you are able to proceed with the setup.
how do you actually start coding
Asked by Chava Draws:

whee do you write your code


Answers:
author: Yogesh Mude
body: HI [@Chava Draws](/t5/user/viewprofilepage/user-id/2018713)

Welcome to the community!

If you are talking about bitbucket and SourceTree then i would say first of all you need to clone your bitbucket repo to local system using SourceTree and then you need to change/add the new code into the cloned repo.

Once you will add/changes done into the repo, source tree will automatically pick up the changes and then just you nee to commit and then push the code to remote bitbucket repo.
Atlassian SourceTree will be uninstalled when i delete the link on windows desktop??
Asked by jmarti:

Atlassian SourceTree will be uninstalled when i delete the link on windows desktop, how crazy is that?  

Is that REALLY the "normal" behavior of that software?  

It will be deleted from start menu, like an uninstallation...?!

Regards,

Jan


Answers:
author: jmarti
body: No anwser, is my question too complex?

Regards,

Jan


author: jmarti
body: when i move copy the desktop link to the task bar, and then delete it from desktop, it's not visible anymore in the startmenu...

but the .exe (the program) still seems to exist: Atlassian SourceTree will be uninstalled when i delete the link on windows desktop??  

"C:\\Users\\aerg\\AppData\\Local\\SourceTree\\SourceTree.exe"

WTF??

Regards,

Jan
Sourcetree push to cloud gives error 502
Asked by Shane DiDona:

This error appeared suddenly last night (US east coast time). I can still pull from cloud to my computer, however. Also, I have not increased the size of the repo.

hg push --new-branch default  
pushing to https://ShaneDiDona@bitbucket.org/Ion-Innovations/autoscope  
searching for changes  

abort: HTTP Error 502: Bad Gateway  
Completed with errors, see above.


Answers:
author: Shane DiDona
body: Was fixed on Atlassian's end


author: Shane DiDona
body: update: now it works
When I am trying to clone getting an error
Asked by janakiram14:

![SourceError.JPG](/t5/image/serverpage/image-id/33053i99BF73DAE2F83422/image-size/large?v=v2&px=999 "SourceError.JPG")


Answers:
author: Manju
body: Few questions,   
1. Does this work on the command line?  
2. Is this on macOS or windows client?
OAuth from Sourcetree (Mac) with BitBucket not working properly
Asked by Remon Pel:

Hi all.

We are trying to connect a new installation of SourceTree (2.7.6 177) with BitBucket.

What we expect:

1. In SourceTree, go to 'Remote', then 'Cog', 'Accounts'
2. 'Add' account, 'BitBucket', 'OAuth' and click 'Connect'
3. Log-in with account
4. **Message "Connected, close window"**
5. **Status: Connected**

What happens:

1. In SourceTree, go to 'Remote', then 'Cog', 'Accounts'
2. 'Add' account, 'BitBucket', 'OAuth' and click 'Connect'
3. Log-in with account
4. **Repository overview is given, as in: it is the complete BitBucket website in a small window.**
5. **Status: Not Connected**

For the time being, we are using "basic" authentication, but that should not be needed -- we've connected with the OAuth method in the past without problems.

Thank you for your response.


Answers:
author: Manju
body: Hi,

We apologize for the inconvenience. This is a known issue which is fixed in the latest beta that will be out as a public release later this week. You can either use ssh or app passwords on Bitbucket as your basic password in Sourcetree in the meanwhile. Thanks for your patience and we will have the new 3.0 version out soon. Feel free to use the [beta version](https://blog.sourcetreeapp.com/2018/08/29/sourcetree-3-0-branches-out-with-new-hosting-services/) if you'd like to try.

Thanks!  
Manjunath  
Sourcetree Mac developer

comments: author: Remon Pel
body: Well, at least you know about it, and it's not just us :)

Thank you for your response!

And about "version 3", I'm excited, can't wait to see it :) Will try out the beta!


author: Manju
body: We've got that fixed and rolled out to 5% of users. You can give it a try by downloading the build - [OSX_Latest.zip](https://bitbucket.org/atlassianlabs/sourcetree-betas/downloads/OSX_Latest.zip)


author: cryptik
body: This same problem appears to be back with version 4.0 (232) on Mac running Catalina 10.15.1. Any advice?


author: alexrada
body: I have the same error running 2.7.6 (177), with no available updates.

comments: author: faelhv
body: [@alexrada](/t5/user/viewprofilepage/user-id/1899351) [@Manju](/t5/user/viewprofilepage/user-id/222564) I'm facing the same issue. I'm running SourceTree 2.7.6 (177) on macOS Sierra 10.12.6 with no available updates. I just cannot connect my SourceTree client to GitHub and BitBucket through the OAuth authentication type with the following message: *"This integration is misconfigured. Contact the vendor for assistance."*


author: faelhv
body: There is a [link](https://bitbucket.status.atlassian.com/incidents/l50d1j43zdj9) indicating this issue has been resolved, but how can I make OAuth work on my machine?


Tags: bitbucket

bitbucket-cloud

cloud

oauth
env: node: No such file or directory
Asked by brettz9:

Upon cloning a Github repo (QUnit) on my Mac (10.13.6), when I try to commit a change, I get an error:

\`env: node: No such file or directory\`

I understand this may be related to a commit hook and the fact that I am using nvm for Node, but I am unclear what to do about it.

Anyone?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Well, could you check from classic command line git?

I mean, is it reproducible from command line git, hence you can understand which is it related pre-receive hook or not.

Cheers,

Gonchik Tsymzhitov

comments: author: brettz9
body: Hi, and thanks... Yes, sorry, I was getting a flag about the format of the commit message.... That cleared it up (though it'd be nice if the log could be available in SourceTree)


Tags: node
Cannot push anymore, in spite of updating git client
Asked by nguyeag0:

At first, I had a similar issue that I tried to solve with this [post](https://community.atlassian.com/t5/Sourcetree-questions/Why-did-github-authentication-suddenly-stop-working/qaq-p/740726#U897656). Then after downloading the latest git client and latest git credential manager I still have this following error :

```
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Pushing to https://myLogin@bitbucket.org/myLogin/myPorject.git
error: failed to push some refs to 'https://myLogin@bitbucket.org/myLogin/myProject.git'
```

The only step I did not know how to proceed is changing the sourceTree. Where is the "Tools" to do "Tools \> Options \> Git " and click "Use System Git version"  
![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/33030i20E2B9D22581FDDC/image-size/large?v=v2&px=999 "Capture.PNG")

Unless it is another problem that I have?

Thank you for your help


Answers:
author: nguyeag0
body: I found out I had a folder that was too large for git to handle in spite of [increasing the buffer](https://confluence.atlassian.com/stashkb/git-push-fails-fatal-the-remote-end-hung-up-unexpectedly-282988530.html). I did not find a solution, I just removed the last commit and then commit everything but that big folder and it worked.


Tags: bitbucket
Why can't I clone from Github using sourcetree?
Asked by makcim:

I created a project (private) under an organization I belong to. I set it to private, and I tried cloning it using Sourcetree without success.

Tried updating git, reinstalling, tried doing it on another pc, and it just won't work.


Answers:
author: Mike Corsaro
body: Hello! Do you get an error when attempting to clone? Is this repository hosted on Bitbucket?

comments: author: makcim
body: As I stated before, the issue was happening with Github. I managed to "fix it" by generating SSH keys on my pc, re-converting them with PUTTY and saving them in github.org
Crash on startup after latest windows update
Asked by Cristian Constantin:

It seems latest Windows Update updated .Net to 4.7.2 .

4.7.1 can not be installed because I already have 4.7.2

---------------------------  
SourceTree.exe - This application could not be started.  
---------------------------  
This application requires one of the following versions of the .NET Framework:  
.NETFramework,Version=v4.7.1

Do you want to install this .NET Framework version now?  
---------------------------  
Yes No  
---------------------------


Answers:
author: Mike Corsaro
body: Hello! I assume you're on a preview version of Windows? If so, please take a look at this reply:

<https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-Start-Error-due-to-Net-Framework/qaq-p/808719#M24321>

Thanks!

comments: author: Cristian Constantin
body: Yes thank you for the reply.

I also found a solution here that is working:

<https://community.atlassian.com/t5/Sourcetree-questions/updating-Sourctree-to-2-5-5-NET-installation-failure/qaq-p/775754#U899389>

As someone suggested:

fixed it by editing file, "C:\\Users\\USER\\AppData\\Local\\SourceTree\\app-2.6.10\\SourceTree.exe.config"

And changed line:

\<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.**1**"/\>

To

\<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.**2**"/\>


Tags: .net

crash
Not able to push to remote: unauthorized
Asked by Linda Stewart:

Using SourceTree, when I try to push to the remote bitbucket repository, I am asked to log into the Atlassian account. I tried both the username as well as the email. I tried both the password for the account as well as the app password. It throws this error:
> remote: Invalid username or password  
> fatal: Authentication failed for 'https://Linda_Stewart@bitbucket.org/km_gissolutions/fme-server-workspaces.git/'

I then use Terminal to run the "git push" command, that same login dialog box pops up and I get this error in the message window:
> fatal: ArgumentOutOfRangeException encountered.  
> Specified argument was out of the range of valid values.  
> Parameter name: resultType

Then another dialog pops up asking for the bitbucket username which I put in the same username as that of my Atlassian account. Then it asks for the password. I use the same one that was throwing the inavlid error. It worked and I am able to push my changes to the remote repository.

I'm positive of the username and password as I am able to do it through git command. So what is the difference between using SourceTree?


Answers:
author: Mike Corsaro
body: Hello! This might be related to an issue with the git-credential-manager-for-windows. Could you try the following:

* [Install the latest version of the credential manager](https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.2)
* Open Sourcetree, and go to "Options \> Git" and make sure "System Git" is selected
* Try pushing again

comments: author: Linda Stewart
body: That totally worked. Thanks Mike.


author: ???? ????????
body: Thanks Mike! Simple and fast!


Tags: bitbucket

permission

user-management
Login issues on sourcetree
Asked by Carey Chico:

I'm having login issues on sourcetree. I have latest version installed v2.6.10 and I'm using embedded git and embedded mercurial.

When I attempt to clone a remote repository, I get 2 login prompts. Filling out one with my github login credentials fails and it pops up again. If I close one of the login windows, it still pops up again.

I've read several threads including this one: <https://community.atlassian.com/t5/Sourcetree-questions/GitHub-login-keeps-popping-up-in-SourceTree/qaq-p/745182>

Can't solve it. Any ideas?


Answers:
author: Mike Corsaro
body: Hello! I suspect that this is an issue with the git-credential-manager-for-windows. Could you try the following:

* [Install the latest version of the GCM](https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.17.2)
* Restart Sourcetree
* Go to Options \> Git \> Select "System Git"
  * Make sure you've installed [git-for-windows](https://git-scm.com/download/win)
* Try and clone again
Is the list of repositories visible on the remote tab limited?
Asked by arjan1973:

We have installed Sourcetree Enterprise 2.6.10. When we are browsing for repositories to clone on the remote environment ( ours is a on-premise Bitbucket server) we do not get all our repositories. It seems like that only the top 30-35 alphabetically ordered repositories in a Bitbucket project environment are found.

We suspect that the results from query to bitbucket are abbreviated. Is this a setting or configuration issue?

Our Users report that previous non Enterprise Sourcetree did and do find all repositories.


Answers:
author: minnsey
body: Hi  

This issue should be addressed in the 3.0 release. We are currently progressively rolling this out and it should be generally available within the next 2 weeks.


Tags: bitbucket

sourcetree-enterprise
Sourcetree keeps requesting my password over and over
Asked by TheEMan:

I'm using Windows 10, Sourcetree version 2.6.10. At some point Sourcetree kept asking me for my password after I already inputted it multiple times. I've searched help forums, and many people have experienced this, but the number of reasons for this bug are overwhelming. I'm requesting further debugging steps to get me to a clear answer as to why this is happening.


Answers:
author: minnsey
body: Hi   

There is a bug in versions 1.16.1, 1.16.2 and 1.17.0 of the Git Credential Manager for Windows that fails to properly store and retrieve Bitbucket Credentials.  

Switching Sourcetree to use a System install of Git 2.19 will fix this. We expect to ship Sourcetree with embedded Git 2.19 soon.


Tags: windows
repo clone with SSH on windows fails
Asked by Matthew P Raffel:

I tried to clone this repo: git@github.com:mattraffel/rust-libindy-wrapper.git

When I click on clone, I get the popup (twice actually) "Authentication via SSH keys failed.....blah blah". I use putty, import the key. Click yes and retry and back to the same popup.

![stupid.png](/t5/image/serverpage/image-id/32783i0D4CE5F47C7C929B/image-size/large?v=v2&px=999 "stupid.png")![stupid2.png](/t5/image/serverpage/image-id/32784i3C5DF8A784D41832/image-size/large?v=v2&px=999 "stupid2.png")

I am using windows. using bash shell on windows, I have this setup as well:

    mattr@TopWoo MINGW32 /c/users/mattr/.ssh$ ls -ltotal 17-rw-r--r-- 1 mattr 197609  114 Sep 19 13:16 config-rw-r--r-- 1 mattr 197609 2727 Sep 19 12:46 git_hub_putty.ppk-rw-r--r-- 1 mattr 197609  837 Sep 19 12:48 git_hub_putty_public.ppk-rw-r--r-- 1 mattr 197609 3326 Sep 19 12:39 id_rsa-rw-r--r-- 1 mattr 197609  749 Sep 19 12:39 id_rsa.pub

Please advise.

Thnx

Matt


Answers:
author: Matthew P Raffel
body: Turns out my problem was created by me.....  

**I forgot to upload the public key to github**. I do not know if github returned more data that could be helpful as it was rather difficult to assess the problem. It would be nice to have a better message, if its possible.

*Getting rid of the duplicate error messages, however, should be a priority*. That is just an frustrating user experience.


author: minnsey
body: Hi   

I will check locally but in the meantime can you try switching to openSSH in Tools/Options/General tab and use that?  

You will need to export your github key in a suitable format for openSSH.  

Thanks
How do you launch the Sourcetree application
Asked by Gregg Myer:

I loaded the installed the .exe file, and in starts a source tree application but it seems to be web based. It does not show up on the start menu, nor the task bar. The only way I can get to the application again is to re-install it.


Answers:
author: minnsey
body: Hi  

Sourcetree installs to %localappdata%/Sourcetree  

In that folder should be a sourcetree.exe. This is actually a wrapper to the *real* sourcetree.exe which is in %localappdata%/sourcetree/app-{version}. This wrapper includes update checking process and provides a consistent path for shortcuts etc while the actual .exe moves with each installed version.  

The installer should create a start menu shortcut, but if not can you run %localappdata%/Sourcetree/sourcetree.exe and then when running pin to the start menu or taskbar.  

If it fails to run can you check for any log messages in the Event Viewer or in %localappdata%\\Atlassian\\Sourcetree\\sourcetree.log  

Thanks