youngmon/atlassian-qna huggingface dataset:
Permission denied (publickey).
Asked by Dmitry Muz:

authorized_keys on my server is up to date

public and private keys are generated in bitbucket pipelines, fingerprint also

but when I start a pipeline it just falls down with such an error

I also have full access to my server with another SSH key

can anybody help me?

![???????????_2022-11-16_233726109.png](https://community.atlassian.com/t5/image/serverpage/image-id/226159i3F3C7F082CF33583/image-size/large?v=v2&px=999 "???????????_2022-11-16_233726109.png")


Answers:
author: Dmitry Muz
body: So I tried to use a newer image version of node and this error disappeared


Tags: bitbucket-pipelines
I cannot finish the installation of Source tree
Asked by Peter Liu:

I cannot login to source tree, I cannot finish the installation of Source tree

When I start the installation:

After I input my username

I do not have place to input my password

and I cannot finish the installation of Source tree


Answers:
author: Peter Liu
body: SourceTreeSetup-2.4.8.0

When I install it, it asks me to put my ID , I put my ID and click continue, nothing happens


author: Gonchik Tsymzhitov
body: Hello Peter,

Could you get more info?

Which version of SourceTree?

Thanks

Gonchik Tsymzhitov
Is it possible to use SourceTree on Windows7 running in Citrix?
Asked by Fan Timmermans:

Our IT-department tried to install SourceTree in their citrix environment. Installation at first sight looked OK. However on second sight they concluded SourceTree is not suitable for their citrix environment. I do not know the reasons for making this conclusion. So my questions are:

- Can SourceTree be deployed on Windows7 running within Citrix?

- Are there certain restrictions in running SourceTree from Windows7 running within Citrix?


Answers:
author: bgannin
body: Hi Fan,

We have an update for Windows that centers on Enterprise deployment (managed environments, additional registration options, pre-configured settings) which might improve their outlook.

That said, I'll the Windows folks to see if they are aware of anything specific to Citrix.

Cheers,

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: bgannin
body: We aren't aware of any issues but it's also not a commonly tested environment for us. Please let us know [via a ticket](https://jira.atlassian.com/browse/SRCTREEWIN) if there specific issues they have. Thanks!


author: Fan Timmermans
body: I'm still in the process of formulating the problem my IT department encountered. They are very occupied with other stuff. As soon as I know I will post the info.

Thanks in advance


author: Fan Timmermans
body: The problem was not Citrix related and also not WIndows7. It is more Windows server 2016 Terminal Services (eventually combined with citrix).


author: Fan Timmermans
body: I got the deatisl from my IT department and created a new question: "Is it possible to install Source Tree on a share location in RDS Windows 2016?"


Tags: citrix

windows
Importing a Java project from netBeans into Sourcetree/bitbucket
Asked by Mik Clarke:

I've got an existing Java project that builds under NetBeans, producing a .jar file. I think it uses ant for its build process. It's in one package with a couple of subpackages.

I need to move it into a sourcetree/bitbucket repository for both code storage and compilation.

What's the best way to import it? Do I just grab the whole project directory from NetBeans or do I create a new repository and copy the code over one file at a time or do I do something else...


Answers:
author: bgannin
body: Hi Mik,

The first step would be to create a repository on Bitbucket Cloud with the project you'd like to manage (don't include build artifacts or other temporary items.) Sourcetree can simplify this process. After that you can set up [Bitbucket Pipelines](https://confluence.atlassian.com/bitbucket/java-with-bitbucket-pipelines-872013773.html) probably to have continuous integration (CI) for your code.

Cheers,

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: import

java

netbeans
How to set default remote branch?
Asked by gaming-hacker:

Hello,

I want to push to a remote repo, upstream

my local branch is version1

the default remote branch is ALWAYS version1 when I want to push to master

Is there a line in the config to add?

Thanks


Answers:
author: minnsey
body: If you use the Push option from the toolbar, assuming you are on Windows, you get the option to map local branch to remote branch before pushing.

comments: author: gaming-hacker
body: Thanks for reply but I use Mac but I use the toolbar and here is the initial view and the result I want. The remote branch always defaults to the same name as the local branch but I want to hard set per repo the default remote branch

![Screen Shot 2018-02-22 at 12.03.50.png](https://community.atlassian.com/t5/image/serverpage/image-id/15624iAC91B88F43E0F0ED/image-dimensions/556x200?v=v2 "Screen Shot 2018-02-22 at 12.03.50.png")![Screen Shot 2018-02-22 at 12.03.58.png](https://community.atlassian.com/t5/image/serverpage/image-id/15625iC49E030C3E4F09D1/image-dimensions/707x242?v=v2 "Screen Shot 2018-02-22 at 12.03.58.png")


author: minnsey
body: Can you not change the remote branch using the dropdown?


author: gaming-hacker
body: yes but i don't want to drop down, i just want to click and go.


Tags: branch

push

remote
SourceTree not showing build status
Asked by richard_howse:

Hi,

I have setup a simple pipeline which is building and passing, although within sourcetree I am not seeing the build status or any status at all, just a grey dot. Although on sourcetree next to my commits am seeing that they are building correctly.

Where am I going wrong, my sourcetree is up to date.

Many thanks


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

Do you have your Bitbucket added in Sourcetree?   
If not, please add it in Preference Window - Accounts tab. Also, if you are using basic auth, please select http for protocol. We cannot pull pipelines status with ssh protocol using basic auth password. If using OAuth, protocol doesn't affect.

Thanks!

comments: author: waissbluth
body: Hi, I'm facing this same issue. I have my Bitbucket account liked via OAuth + SSH. I have two repositories with pipelines set up, but the build status shows up for just one of them.


author: Manju
body: Do you mind adding some screenshots?


author: waissbluth
body: Sure -- here are two repositories from the same Bitbucket Account, same permissions, both with pipelines enabled, both using SSH. Do you need screenshots of anything else?

![Screen Shot 2019-03-08 at 9.07.45 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/48140i6DA1F4DF24AD97AE/image-size/large?v=v2&px=999 "Screen Shot 2019-03-08 at 9.07.45 AM.png")


author: waissbluth
body: [@Manju](/t5/user/viewprofilepage/user-id/222564), did you have a chance to look at this? Thanks


author: waissbluth
body: One year later and I have a lead on this issue. I noticed that clicking "View Remote" did not take me to Bitbucket, but to the url of some other remote that we also use (e.g. Heroku or AWS Codecommit). By removing all other remotes and leaving only the Bitbucket one, the build status shows up. I have not found a way of setting that remote to somehow stay as the primary one after adding the other back, other than renaming it to "origin".

Essentially, the build status only works when the Bitbucket origin is either the only one, or it is called "origin"


Tags: bitbucket-pipelines

build
SourceTree with Jenkins
Asked by kirthika:

Hi,

I using Source Tree to maintain code and Xcode \[XCTest Framework\] for Automation. Is there any way to implement CI using Jenkins.

I want to run my automation script in XCode whenever code is committed by developer in TFS.

Thanks in advance

Regards,

Kirthika


Answers:
author: Timothy
body: While you are using SourceTree as your Git client, you're probably better off asking this question in the TFS or Jenkins forum instead of an Atlassian forum. Something like this could help you off:

* <http://www.vogella.com/tutorials/Jenkins/article.html>

comments: author: kirthika
body: Thanks for your response


Tags: jenkins
Connect source tree to multiple bitbucket accounts
Asked by cpotti:

Hi

Can sourcetree be connected to multiple Bitbucket accounts,if so what are the steps to do so. Any screen shots to do this will help me learn and understand how to configure if it is doable.


Answers:
author: Mike Corsaro
body: Hello! Yes, it can (assuming you're using windows):

* In the main toolbar, go to Tools \> Options
* Select the "Authentication" tab
* Click "Add"
* If you'd like to use OAuth, then just click "Refresh OAuth Token" and it will add the account
* Repeat this again, but change "Authentication" to "Basic" and fill in your username and password when prompted

![account.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/15537i3042783F92BF38F8/image-dimensions/461x420?v=v2 "account.PNG")

comments: author: jmcmullen
body: Because I'm on a Mac, I'll ask: Is it possible to connect to multiple Bitbucket accounts using the Mac version of the app? (The company was acquired so I have to work on two different repositories with two different user names, and we use OAuth.)
How to connect source tree to multiple bitbucket accounts
Asked by cpotti:

Hi

Can sourcetree be connected to multiple Bitbucket accounts,if so what are the steps to do so. Any screen shots to do this will help me learn and understand how to configure if it is doable.


Answers:
author: Ana Retamal
body: Hi Chaitanya! Have you already followed the steps at [Connect your Bitbucket account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html ). Did you encounter any issues? Do you need any further help?

Best regards!

Ana
Sourcetree 2 Factor Authentication
Asked by jacfab:

I found this article:

<https://confluence.atlassian.com/sourcetreekb/two-factor-authentication-2fa-with-github-in-sourcetree-402033499.html>

I am searching for exactly the same, unfortunately this solution works only on source tree 2.4 and earlier. My version is the latest: 2.7.

Anyone an idea where to fill in the **token**so I can use 2FA for my remote server?


Answers:
author: Sonu
body: Answer \> <https://stackoverflow.com/a/53624774/1023074>


author: Manju
body: Hey [@jacfab](/t5/user/viewprofilepage/user-id/1188306),

You can use OAuth to sign in while adding your Github account in Sourcetree. You can add the account in Preferences window - Accounts tab.

comments: author: Felipe F
body: Hi [@Manju](/t5/user/viewprofilepage/user-id/222564), I've setup OAuth in Sourcetree v2.4.8.0 in Windows without issues, but when trying to push to any repo it open a login popup from github. After writing my credencials it fails the push.

![Captura.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/19444i205FA684FD8B87A1/image-size/large?v=v2&px=999 "Captura.PNG")

When doind push:![Captura2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/19447iE363A9F622C28DF8/image-size/large?v=v2&px=999 "Captura2.PNG")

Push fail:

![Captura3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/19448iF56079735930A36F/image-size/large?v=v2&px=999 "Captura3.PNG")


author: Mike Corsaro
body: Hello! When you get that login dialog, are you filling in your username and password? And does that dialog then prompt for a 2FA approval?


author: Felipe F
body: Hi [@Mike Corsaro](/t5/user/viewprofilepage/user-id/842547), I fill it with my username and password, tried with email too. No, it does not prompt for 2FA approval. It just try to push and fail.


author: Mike Corsaro
body: Could you try going to "Tools \> Options \> Authentication", remove all of the accounts, and then try pushing again?

If that doesn't work, could you try installing the newest version of Git from <https://git-scm.com/>, restart Sourcetree, and then go to "Tools \> Options \> Git" and select "Use System Git", and then try again? Thanks!


author: Tyler Yeary
body: I would also like to chime in on this.

I have the latest GIT installed and SourceTree is using my system GIT. I've also deleted and re-authenticated myself with Github. I have the same issues at the OP.

I've attempted to use OAuth, which gives me the same problems as the OP. If I used the Basic Authentication, I get, "Authentication Failed. Failed to check login for user \<user\>. Must specify two-factor authentication OTP code."

Edit:

It seems as if my git version wasn't updated or placed where it was supposed to be. I apologize. I updated my GIT version from 2.14 to 2.16.2 (Windows) and it now asks for 2-step authentication and correctly works.
Re Repository Automatic Deleted
Asked by Manish:

Helllo . I have problem in source tree . Repository automatic deleted after 3 4 days ... what is the possible solution to fix this issue..

regards

manish


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

Is it deleted from your disk? Or is it just that you cannot see it in the bookmarks of Sourcetree? What version and what OS are you using?

comments: author: Manish
body: Os is windows 10 bookmark auto deleted and source tree version 1.9.6.1


author: Manish
body: bookmark auto deleted
"Refresh" (?) icon in Local repositories list
Asked by jfren484:

When I view my local repositories, Some have the updated/changed/removed files with a count, which is self-explanatory. Some of them, however, have what looks like a "refresh" icon next to the name. Hovering over or clicking this icon doesn't do anything, so I'm wondering what it means?![2018-02-14 11_07_51-Sourcetree.png](/t5/image/serverpage/image-id/14913iA751DFB4120C34CC/image-size/large?v=v2&px=999 "2018-02-14 11_07_51-Sourcetree.png")


Answers:
author: Mike Corsaro
body: Hello! There's 2 reasons why this can happen:

* It's taking a long time to refresh the status on the repository
* It's a minor UI bug. Moving the repo up or down will fix it

comments: author: jfren484
body: Thanks, Mike! I just checked now, and there are none of them with that icon now, so I'm guessing it was the former in my case.
sourcetree????????
Asked by kan ?:

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

![????????? 2018-02-14 10.59.03.png](/t5/image/serverpage/image-id/14860i50856A62D12BE5DE/image-size/large?v=v2&px=999 "????????? 2018-02-14 10.59.03.png")![????????? 2018-02-14 18.28.44.png](/t5/image/serverpage/image-id/14861i92D87FC9ABCE7B5F/image-size/large?v=v2&px=999 "????????? 2018-02-14 18.28.44.png")


Answers:
author: K. Yamamoto
body: ??????????????????

<br />

???????????????? [SRCTREE-5271](https://jira.atlassian.com/browse/SRCTREE-5271) ???????????????????????????????? v2.6, v2.7 ?????????????????????????? <https://www.sourcetreeapp.com/download-archives> ????????????

???????? *Start watching this issue* ??????????????????????????????????????????????


Tags: language-ja
Sourcetree can't retrieve a free license after registering
Asked by Elena Martinez Lopez:

My 30-day trial expired yesterday and I registered for free. The process seemed to be going just fine (fill in the requested data, click on the 'Verify my email' button, login on my account on the web) but Sourcetree is permanently stuck *'Downloading a license'*.

I tried looking for a license in my Atlassian account to no avail. Also cheched the forums but all I could find were old posts that redirect to pages that don't work anymore.

I think this might be a recent problem with the program since everyone I know who used SourceTree before never had this problem.


Answers:
author: Elena Martinez Lopez
body: Just found the problem. The network at work limits the connection to many websites, Atlassian being of them, to the point that My account page looked completely different. I tried from a different computer connected to a different network and I was finally able to download the license without a problem.


Tags: licence
Clone Repository
Asked by Sneha Bhasin:

We are using sourctree on RDS to connect to bitbucket.

Is it necessary to clone repository for each user or a single clone can be shared by all users?

Cloning repository/user will occupy lot of space. Can someone suggest any alternative wherein all users can access a single clone from the bitbucket?


Answers:
author: Mike Corsaro
body: Hello! I'd **strongly** **recommended against** cloning one repository for multiple users to use. Doing this will cause more problems in the future for yourself, and your users.

Consider the following scenario:

* User A creates a branch, and makes some changes
* User A forgets to push those changes to the remote server
* User A logs-out
* User B logs-in, and makes some changes
* User B discovers a new local branch they didn't make, and removes it
* User A has now lost their changes

Git also doesn't include a permissions model, so all local branches can be removed by any user. Stashes made by a user are also only stored locally, so stashes will be seen and shared by all users.


Tags: bitbucket
Unstaged Files not appearing
Asked by kesshin:

I think the tutorial needs to be updated. I'm brand new at this, and learning everything for the first time. I'm following tutorial: <https://unity3d.com/learn/tutorials/topics/cloud-build/creating-your-first-source-control-repository?playlist=17866> and I'm on Step 4.

I'm at the point where Unstaged Files should appear after: Step 4. In the following screen shot, the unity project "MyFirstProject" will be moved into the local repository folder "MyFirstUnityRepo" and Upon populating your local repo, SourceTree will automatically detect changes and will update.

Because of this, I'm unable to move onto:

6. Commit and Push your Local Repo to the Remote Repo {#toc-hId-1789756633}
---------------------------------------------------------------------------

so my question is how am I to get them to appear? I even went to the dropped down and changed it to Modifed, and then to all. If it makes a difference, I'm using Win10.


Answers:
author: kesshin
body: \*Disclaimer\*

I said I was brand new at this.

So it turns out they didn't appear because they had nothing to load. Meaning I had no code in my repo. Sorry if I wasted time or wrote a dumb question. In my defense, it said I was creating everything from scratch, and they did NOT mention having code in it before hand. As a matter of fact, it said to "skip setup" if I was creating a repo for the first time.

\*\*"When asked to create your first repository, 'No thanks'. We will be creating a repository with SourceTree."\*\*

comments: author: Mike Corsaro
body: No worries -- we all have to start somewhere ?


author: Mike Corsaro
body: Hello! Could you double check and see if your Unity project folder is inside the repository folder? Also, make sure the file filter drop-down is set to "Pending"

comments: author: kesshin
body: Yes, both of those have been checked. Thank you for the response.


author: Mike Corsaro
body: Nevermind, solved!


Tags: windows
I'm not sure what is the problem but either my GIT or SourceTree
Asked by Joey Sanchez:

I have a Mac (like a second machine to do Apple development) and I'm noticing something very odd. I'm also thinking it may be a bug or some setting somewhere. I noticed your contact us system does not allow upload of images, so i can't send you guys a screen capture which would have saved me the thousand words to describe but you do not, so here it comes.

Long story short when I create a new repo of a project it sets up fine, however it is displaying two branch entries from another repo. I do not know why it seems to show 'remote' branches (in red) from another repo is my newly created remote branch. I believe I can try to explain more but I'm also not sure how to convey the little things I see wrong. I guess the one thing I can mention that you may understand is in SourceTree left navigation section there is a menu entry in all caps named, 'REMOTES', and when I expan it I see 'origin' and when I expand that I see two branches from another repo and I'm not sure how that happened. I'm not sure but I do not think I made a mistake. I can send screen shots but let me know to where and I'll add the ticket number to it.

Joey

joey@leadid.net


Answers:
author: Mikael Sandberg
body: If you run git branch -r in the repository, does it show the same branches? Is your remote URL setup correctly? git remote -v will show you what URLs you are currently using.

comments: author: Joey Sanchez
body: I think you are correct, I believe I'm now in clean up mode and I'm suspecting it will work out. Thank you very much.


author: Joey Sanchez
body: Yes you are a champion, thank you.
Sourcetree 2.4.7 UI significantly different from help files?
Asked by Billgiblet:

I downloaded Sourcetree 2.4.7 (now upgraded to .8), and am working to get my head around Git and source control. The UI of the version discussed in the help files appears to be really different from what I downloaded.

Did I download the wrong product, or has the help just lagged behind the changes? I appreciate that it's a free tool and I'll figure it out, but I thought I should ask.

Thanks,

BG


Answers:
author: bgannin
body: You did download the correct product, Sourcetree looks a bit different (though quite similar in most respects) on Windows versus macOS. The content of <https://confluence.atlassian.com/get-started-with-sourcetree> is based on the macOS version. I've reached out to the documentation team to see about getting some updates in the queue. Thanks for your patience and for reaching out.
Issues with Remote Repo Browser
Asked by rolehand:

When trying to refresh my remote repo list in the repo browser window, I always get an authentication error. Using SSH to connect to a hosted GIT environment.

```
Login failed for your Bitbucket Server account.

The remote service said: 'Login error'
```

Pushing/Pulling from within a repo seems to be working fine.

<br />

Any ideas? Or is this a known bug?


Answers:
author: rolehand
body: Hi Manjunath,

Unfortunately, changing to https did not do the trick for me.  
I get the same error.

By the way, we are using a setup on githost, which, if I'm correct, doesn't need any password, since the SSH key is used to identify me.

comments: author: Manju
body: I'm assuming your git host is a bitbucket server instance. Please correct me if I'm wrong. How do you login to the web interface of your server?


author: rolehand
body: Hosted on githost.io indeed.

I log in using my email address and password. (No 2FA active)

Using https I can also get pull/push to work. Only the repo browser refuses to be happy..


author: Manju
body: Alright! That's a gitlab service and not bitbucket server. We have limited support for gitlab accounts as of now. Having said that, it means we support all git interactions but not a full fledged REST interactions which is needed to pull all remote hosts information. You can request for this as a new feature or vote on existing tickets tracking this at <https://jira.atlassian.com/browse/SRCTREE>

Thanks!


author: Manju
body: Hi [@rolehand](/t5/user/viewprofilepage/user-id/1186757),

Since we do not have the account password for Bitbucket server and ssh combination, we cannot show the list of remote repositories right now. We are tracking this issue and will make appropriate changes in an upcoming release to introduce the password field and display all the remotes.

In the meanwhile you can use https if you'd like to see the list of remotes and all git operations would work just like ssh.

Thanks,  
Manjunath  
Sourcetree Mac Developer
Bug? branch comment appears appended to branch name when pushing
Asked by Brian Beck:

A few updates ago I started noticing this annoying behavior. When pushing a branch, the comments for the commit are getting appended to the name of the branch! See the screenshot below. Any idea how this is happening, and does anyone else get this behavior?

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


Answers:
author: minnsey
body: Try turning off verbose mode in the Tools/Options/Git tab

comments: author: Brian Beck
body: Wow, that was all it took! Thanks!