youngmon/atlassian-qna huggingface dataset:
SourceTree BitBucket not authorized error
Asked by Faizal Rub:

I recently changed my windows password and pushing the changes from sourcetree to bitbucket throws unauthorized error.it was working before. It prompts for user I'd and password and displays the error. I am able to login on the bitbucket with the same user I'd and password. Any feedback would be much appreciated.


Answers:
author: Fatma Ya?anlar
body: Hello, I am also getting an authorization error.  
Mistake ;

? Authentication failed  
Failed to check login for user \[mehmet. Temel\]  
You do not have permission to access URL '<https://api.bitbucket.org/2.0/>  
user'. The request returned with status code 'Unauthorized'.  
ARROW  
Cancel


author: Mandar Godse
body: I am facing this issue as well, every time I change my password. I have already posted it another JIRA ticket.

The error I see in the logs Credentials not found for sourcetree rest https:user@host.com

The error I see on the screen: Failed to check login for user-XXX: You do not have permissions to access the URL: https:.xxxx.xx.com-rest-api-1-0-users-xxxxxx. Please check the user credentials associated with this account. The request returned with status code Unauthorized.

Note those XXX are substitute for my ID and Host Name.  
I have access to the URL I can login to bitbucket from the browser from various different machines. Also the same API it complains Unauthorized, I can get a nice results in the browser on the same machine. Its the Sourcetree/bitbucket integration issue, it is extremely annoying.

Source Tree Version for Windows 3.1.3.  
Atlassian Bitbucket v5.15.1


author: Ana Retamal
body: Hi Faizal, to help us better understand your issue, can you provide the following:

* Which password exactly did you change?
* Can you send as a screenshot of the error you get?
* If you try pushing the changes via the command line, do you get any error?
* Lastly, which version of SourceTree and Windows are you using?

Regards,

Ana


Tags: bitbucket

windows
Source Tree silent installation procedures for version 2.1.2.5
Asked by Brian Smith:

Looking for the update KB doc for silently installaing Source Tree 2.1.2.5

Current article is out of date.


Answers:
author: Ana Retamal
body: Hi Brian, SourceTree no longer provides a way to perform a silent installation, every user needs to install it and register it using their Atlassian account. We have however a feature request for that, you can find it at [SRCTREEWIN-6570](https://jira.atlassian.com/browse/SRCTREEWIN-6570).

Hope this helps!

Ana
Restore deleted repository - SourceTree 2.1.2.5
Asked by nicolasp_wm:

Hi everyone,

In the 1.+ version of SourceTree, we were able to remove a project from bookmark, and then find it again in our bookmarks when we re-open it.

On the current version of SourceTree, if I delete a repo from the "All Repos", and then if I open it again, the repo does not reappear in the "All Repos".

The only workaround that I found was to clone again the project in order to make it appear in my "All repos" folder.

My question is: how can I save a repository to my bookmarks without recloning it ?

Thanks,

Nicolas Patin


Answers:
author: minnsey
body: Hi  

I'm afraid I don't quite follow the question, could you add some more detail maybe screenshots to clarify?  

In both versions of SourceTree you can delete a bookmark and you have the option to just remove the bookmark and/or delete the repository from the filesystem as well.

If you remove a bookmark, but not the repository you can use the 'Add' option to recreate the bookmark.  

Alternatively if you move a repository on the file system but leave the bookmark, yu can double-click on the bookmark and point it at the new repository location

comments: author: nicolasp_wm
body: The "add" button was the solution indeed.

I'm pretty sure in the previous version of SourceTree, bookmarks were automatically updated after we open a project from Ctrl+O, but anyway, this works !

Thanks Michael !


Tags: delete
I can not sign in to bitbucket from source tree 2.1
Asked by Naoya Oe:

I have installed source tree 2.1.2.5 to my windows 10 Pro.

<br />

But I could not sign in bitbucket from the source tree although I have an account for bitbucket.

I checked get-started help (<https://confluence.atlassian.com/get-started-with-sourcetree>)

In installing source tree section,  
(<https://confluence.atlassian.com/get-started-with-sourcetree/install-sourcetree-847359094.html>)

Log in to your Attlasian account did not appeared.

I tried to add acount putting tool-option-Authentication.  
I checked Add button to have a Edit hosting account view.

Default setting was following.

Host  
Hosting Service : Bitbucket  
Host URL : https://bitbucket/org (read only)  
Preferred Protocols : HTTPS

Credentials  
Authentication : OAuth  
Username : (empty)

Although I clicked username field it was read only and I could not enter the user name.

How can I sign in to bitbucket account with source tree version 2.1.2.5?


Answers:
author: Ana Retamal
body: Hi Naoya, you should have been asked to register with your Atlassian account first. If you were not, can you uninstall and install SourceTree following the steps:

1. Uninstall SourceTree
2. Backup then delete the directory below before proceeding with next step
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local and delete *SourceTree* \& *SourceTree-Settings* folder
   * Navigate to C:\\Users\\\<UserName\>\\AppData\\Local\\Atlassian and delete all SourceTree Files/Folder.
3. [Download](https://www.sourcetreeapp.com/) and install SourceTree

If it still fails, can you clarify wether you're using Bitbucket Cloud or Server and attach a screenshot of your account settings?

Regards,

Ana


Tags: bitbucket
How to I use SourceTree with Enterprise account
Asked by Thomas Townsend:

My Company has an Enterprise JIRA account that includes Bitbucket I do not see how to configure Source Tree to access it?


Answers:
author: Sapan Desai
body: Facing the same issue... Not able to link SourceTree to my our Bitbucket


author: Ana Retamal
body: Hi Thomas! First you'll need to have your developers install SourceTree and register with their Atlassian account. After that, they can add the Bitbucket account. For more information they can read [Get started with SourceTree](https://confluence.atlassian.com/get-started-with-sourcetree/install-and-set-up-sourcetree-847359043.html).

Hope this helps,

Ana

comments: author: Thomas Townsend
body: Tried that and there is no provision to be able to log into our Enterprise account only the default ATlsasina account for a regular user.

Additionally, I attempted this just to get the tool set up and it appears your Windows Installer may be broken.

I can get into the personal account and can view my Fre License but the install goes no further. I have attempted to uninstall and reinstall and still no luck with the installer.

Note: I use SourceTree on my home Personal PC running Windows 10. My employer uses Windows 8 on our Laptops and wondering of that's an issue?


author: Thomas Townsend
body: OK, the workaround was to create a totally new Atlassian Account just to complete the installation. You should really fix this and or provide DETAIL instructions on how to accomplish this.

For a Company your size thinking about IPO and one of your product's documentation for the install is extremely poor and the support answers even worse. Wasted several hours of time that I cannot get back. Not very pleased with this at all.


author: Ana Retamal
body: Hi Thomas, I'll pass your feedback to the team so we can improve the documentation. I tried following the steps to log in with an existing Atlassian account managed by Google and it worked for me, however it's confusing that when clicking the other option it's still asking for a license.

Let us know if there's anything else we can do for you.

Best regards,

Ana


author: gimrim
body: It's been a while since you answered this problem, but maybe things have changed in a newer version?

I have the same problem.  
I have installed Sourcetree and logged on with my Atlassian account, but I cannot add any company account.  
I cannot change the host URL for Bitbucket, and even if I login to our company Bitbucket the OAuth does not pick this up, and redirects me to the usual login, where I can't use mit company login.

Everybody else uses CLI, but I like Sourcetree, but maybe it's not for work accounts?

Best regards

Robert


author: gimrim
body: ... Forgot to mention - We have single signon to our Bitbucket Server, so everything works fine in the browser - Just not in Sourcetree.

/Robert
Hi Team,
Asked by Mahesh Nallabothula:

Iam Using source tree from last 1 year.But from last 2 months iam facing an issue.ie premission issue.While in pulling and in pushing it show like in (Attached Image).Daily iam generating new ssh key and continue my work.But it shouldn't .Please provide permenant solution for these problem.![sourcetree3.png](/t5/image/serverpage/image-id/2300iF89CD9E68201CA87/image-size/large?v=v2&px=999 "sourcetree3.png")


Answers:
author: Ana Retamal
body: Hi Mahesh! Can you provide the following information:

* Which version of SourceTree and OS are you using? (If you're on Mac, you can check the keychain to make sure the right credentials are stored)
* Is that happening with a specific repository, or with all of them?
* Are you also getting that error when using the Command line?

Best regards,

Ana

comments: author: Mahesh Nallabothula
body: Hi Ana Retamal Ortiz,  
Thanks for your immediate response.right now Iam using 2.5.2(111) \& OS is 10.12.5. It's happening with specific repository only.When I start using any command on next day,it shows (i.e see below attached image).![Screen Shot 2017-06-21 at 11.36.20 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/2353i0AB110BB86AE6229/image-size/large?v=v2&px=999 "Screen Shot 2017-06-21 at 11.36.20 AM.png")  


author: Mahesh Nallabothula
body: Hi Ana Retamal Ortiz,  
Thanks for your immediate response.right now Iam using 2.5.2(111) \& OS is 10.12.5. It's happening with specific repository only.When I start using any command on next day,it shows (i.e see below attached image).  
![Screen Shot 2017-06-21 at 11.39.07 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/2354i8B4FD6F32F3EE40F/image-size/large?v=v2&px=999 "Screen Shot 2017-06-21 at 11.39.07 AM.png")  
Please provide any suggestion for these problem.  


author: Ana Retamal
body: Hi Mahesh,

Is this repository hosted in the same service as the other ones that don't have problems? Also, can you try using the command line and see if you get the same error?

If you're using SSH, can you run this command to see which key is your SSH agent offering, whenever you get this error again?

```
ssh-add -L
```

There seems to be a known issue with MacOS Sierra not rememebering SSH keys after rebooting that might be affecting you, you can see it at [MacOs Sierra doesn't remember SSH keys between reboots](https://apple.stackexchange.com/questions/254468/macos-sierra-doesn-t-seem-to-remember-ssh-keys-between-reboots).

Let us know!

Ana


author: Manju
body: And if you don't see your keys listed when you run

```
ssh-add -l
```

You can run the command below to add your key to the agent,

```
ssh-add ~/.ssh/id_rsa
```

You can replace the name/path of the key accordingly.


Tags: mac
Can't open SourceTree Bookmarks
Asked by ashwinsoni:

using sourcetree version 2.1.2.5 on windows.

Couldn't see the bookmarks on left panel. View \> show/hide bookmarks options is unavailable. If its an updated UI than I request to add an option to view bookmarks on left panel.

Please help.


Answers:
author: minnsey
body: Hi

I'm afraid that view is no longer available in SourceTree 2.x. You can raise a feature request at <https://jira.atlassian.com>

comments: author: Cwide_MohammedKhan
body: You may want to update your documentation, then.

<https://confluence.atlassian.com/get-started-with-sourcetree/bookmarks-window-847359137.html>

I don't see that when I start SourceTree and with thirty solutions to keep track of, I could really use a way to organise them.


author: minnsey
body: That documentation is for the mac version.  

However if you upgrade to Sourcetree for WIndows 3.1 or higher you will see there is a new project view sidebar.  

<https://blog.sourcetreeapp.com/2019/01/17/sourcetree-for-windows-2019-preview/>


Tags: bookmark
Authentication error trying to access github account on a Mac using SourceTree v2.5.2(111)
Asked by bholm:

I am unable to connect ST 2.5.2b (111) on my Mac (OS Sierra) to my Github account. It keeps saying Authentication error, yet I use the same exact authentication for login in a Chrome web browser and it works just fine.

Screenshot of the error: <https://screencast.com/t/LzjrEbtsgN>

I've read the other thread suggesting to use generating an Access Token to use for the password but that fails even worse. It doesn't get past the login form submit on that one.

It appears that this topic has been around for 5-7 years now and Atlassian still hasn't cured an authentication problem?


Answers:
author: bholm
body: I gave up trying. I switched to using HTTPS authentication and storing the login in my keychain and it works fine. First access prompts for the username and password but make sure the checkbox to store it in your keychain is checked. Then it will remember it for each Push to github.

SourceTree Mac SSH key storageis not seeming to be compatible with github.com.
Conflict in Tag name when commiting moved tag
Asked by Jean-Marc Zanni:

I use tag to track what version each of my customer is currently using. On the local source tree I move the tag of the customer as I update their system. Problem is that remote does not like it. It sees conflict in tg name. It does not recognize the tag as bein moved. How resolve this?


Answers:
author: minnsey
body: Hi  

You will need to force push your moved tag.  

In SourceTree for Windows you can enable this option in the Tools/Options/Git tab and then select it when pushing.  

The 'force with lease' option, while generally safer will not work for forcing tags, so do not select it for pushing moved tags.
SourceTree PHP 5.6+ Issue
Asked by Mike Madison:

We currently have a githook that calls some code that is written in PHP that executes codesniffer and other actions during each commit process. This code has a use statement in it that relies on use const syntax that should be stable (it works just fine in the command line) but for some reason, it triggers the following error inside of SourceTree. This syntax is valid in PHP beyond PHP 5.6.

```
Parse error: parse error, expecting `"identifier (T_STRING)"' or `"\\ (T_NS_SEPARATOR)"
```

Normally I wouldn't post a code error like this, but the code does execute fine from the terminal, so it's clearly something going on in SourceTree itself. Any thoughts?


Answers:
author: Mike Madison
body: This continues to be an issue with SourceTree even into PHP 7.3. SourceTree for Mac uses the version of PHP that ships with Mac OS, not necessarily the version that Homebrew and/or .bash change to use. It would be great if the product gave an option to change PHP version as the host machine also uses other methods of changing.


author: Mike Madison
body: Reading through the issue on <https://community.atlassian.com/t5/Bitbucket-questions/SourceTree-Hook-failing-because-paths-don-t-seem-to-be-set/qaq-p/274792>, this seems to be the same issue. My .bash_profile is using a different version of PHP than when SourceTree runs.


author: bgannin
body: What OS and version of SourceTree are you using?

Brian Ganninger  
Senior Mac Developer, SourceTree

comments: author: Mike Madison
body: Mac OS 10.11.6 and SourceTree 2.5.3 (115)


Tags: php
How do I stop source tree git authentication popup ?
Asked by Conx-Ryan:

I have multiple Bitbucket accounts, both are added and working in the authentication tab of source tree but i always get a periodic modal popup for authentication when source tree is running like it cant swap between repositories


Answers:
author: Conx-Ryan
body: Windows 10 Creators update;

SourceTree 2.1.2.5

-Update I installed an authentication helper i found on another post and now i get a more nicely formatted (atlassian branded instead of windows) modal dialog with what seems like a greater periodic popup

comments: author: extthtb
body: Something to be aware of: It writes username and password in clear text into the git property file, and can't use that for mutch...


author: Ana Retamal
body: Hi Ryan! Which version of SourceTree and OS are you using? If you're using Mac, can you check the keychain to make sure the right credentials are stored there? Can you also let us know if you're referring to Bitbucket Server or Cloud, and if the connection is via HTTPS or SSH?

Regards,

Ana
How to clean up cache used by manager-st
Asked by shuilongyangvz:

With SourceTree 2.1.2.5 and windows 10, it uses manager-st for credential.helper. How do I clean up the cache this manager-st uses? I have problem with authentication to remote HTTP repository.

Here is my problem with pull operation:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=manager-st fetch origin  
fatal: Authentication failed for '<http://btt-tfs-idn.verizon.com/BTTCollection/Configuration%20Management/_git/CM%20Scorecard/>'  
Completed with errors, see above.


Answers:
author: shuilongyangvz
body: Search for Git-Credential-Manager in discussion or click this link [https://community.atlassian.com/t5/SourceTree-discussions/Git-Credential-Manager/td-p/580591](https://community.atlassian.com/t5/SourceTree-discussions/Git-Credential-Manager/td-p/580591 ) Follow the instructions, you could set correct username and password for 2.1.2.5 to use to do "Pull" or "Push" operations.


author: minnsey
body: Hi

Via Ctrl-Win open the "Manage Windows Credentials"

Under the "Windows Credentials" heading, delete any/all entries with the prefix "git:"


Tags: cache

housekeeping

windows
Now that GIT LFS supports File locking will Source Tree support it too?
Asked by Vicente Carro:

Now that GIT LFS supports File locking will Source Tree support it too?  
<https://github.com/blog/2328-git-lfs-2-0-0-released>  
I've updated both, SourceTree and git lfs (to a version newer than 2.0.0) so in theory I have file lock functionality. However I can not find any way to use it.  
Is there a way to already use this feature within the GUI or has it be done in a console?  
If not, Will it be supported in the future?


Answers:
author: bgannin
body: There is no LFS locking support in SourceTree currently. We can't comment on a timeline for functionality. Please make sure to vote on an existing ticket or file a new one for either [Mac](https://jira.atlassian.com/browse/SCRTREE) or [Windows](https://jira.atlassian.com/browse/SRCTREEWIN).

Brian Ganninger  
Senior Mac Developer, SourceTree

comments: author: cowlinator
body: The existing ticket is <https://jira.atlassian.com/browse/SRCTREE-4663> . Be sure to click "Vote for this issue"


author: Sean Lively
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444) <https://jira.atlassian.com/browse/SRCTREE-4663> was closed without resolution or comment. Should we assume that LFS Locking will never happen in SourceTree?


Tags: git-lfs
Jump to HEAD
Asked by Mikel_Luri:

Sometimes I check out some commit in the middle of nowhere and then scroll up or down, or jump to other commits, and then I have to search for the currently checked out commit.

Is there any way to jump directly to the head? Have I missed something obvious?

(Well, I've just found that by changing "all branches" to "current branch" and back to "all branches", I can jump to the head, but I would have expected an entry in "Jump to..." or just "HEAD" in the branch or tag list)


Answers:
author: minnsey
body: Hi

No you've not missed anything. You can add a feature request at <https://jira.atlassian.com>


Tags: windows
Need to replace the old commit message with the new one
Asked by ashwinsoni:

wrote the weird commit message has been pushed to repo

Now dealing with the pain in the a\*\* to undo the same.

Is there anyway to do it ?

Really appreciate your effort.


Answers:
author: Ana Retamal
body: Hi Ashwin! In SourceTree you can go to "File status", click on the commit message at the bottom and then on "Ammend last commit" (see screenshot). Note that the location of this menu varies slightly depending on whether you use Mac or Windows.

![Screen Shot 2017-06-19 at 15.56.22.png](https://community.atlassian.com/t5/image/serverpage/image-id/2256i2BC268E18513EB0A/image-dimensions/257x168?v=v2 "Screen Shot 2017-06-19 at 15.56.22.png")

Alternatively, you can also do it via the command line. You can read Git's official documentation for more information [Git commit](https://git-scm.com/docs/git-commit).

Hope this helps!

Ana


author: Steve Hogdahl
body: Is there a way to do this for commits that have already pushed?


Tags: push
Corporate usage with single email address
Asked by J?rgen H?lker:

Hi,

is it possible to use a single email address for usage of SourceTree in a Corperation? Having every single user to register with Atlassian seems a bit overkill...


Answers:
author: Ana Retamal
body: Hi J?rgen,

Using a single email address is not possible. The developers need to register the product with their Atlassian account, this allows them to easily accept Atlassian's Customer Agreement and have a single login for all of our cloud products. Additionally, it ensures that SourceTree is distributed with respect to US Export Control laws. SourceTree has always been a tool for the individual developer.

Hope this explains!

Ana


Tags: licence
Confiform Calculation based on Field inputs
Asked by Maximilian Herbert:

Hi there,

this is more of a "is this possible" question.

Setup is the following:  
Form (F1) is creating a Subpage when a record is created (based on a space template)

Every field in the Form has different answer options (sometimes yes / no, sometimes other options). Now every answer equals a different amount of points.

E.G: Yes == 10 points, No==5 points

Now in the final Subpage I want to calc the points of the answers

Anyone has a clue if this is even possible?


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Maximilian Herbert](/t5/user/viewprofilepage/user-id/5266053)

Use a Formula field in ConfiForms and calculate what you need

<https://wiki.vertuna.com/display/CONFIFORMS/Supported+math+operators%2C+formulas+and+functions>

Alex

comments: author: Maximilian Herbert
body: Hi Alex,  

I tried it with the formula field which obviously works perfect.

The only thing that is not really good about this solution:

For every field I want to include in the total calc I have to make an additional field where I store the value depending on the answer.

It looks like that

Field1 (Dropdown with 3 options)

Field1Calc (If Option1 -\> Value=1 \| If Option2 -\> Value=2 \| If Option3 -\> Value=3)

I have 20 fields in total that neet to be included. So with this solution I would need to make 20 More fields (FieldXXCalc) where I store the value for the corresponding field.   
This makes the record very very long and complex.


author: Alex Medved _ConfiForms_
body: Why not to mae the dropdown field values ALREADY be the values you WANT?

Meaning that accessing their "id" property you will get a numeric value you have defined for each option

Alternatively, an *evaluateFormula* [virtual function](https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions) can be utilized to do the calculations on the fly... in the target pages


author: Maximilian Herbert
body: I like the idea with the "ID" property ! I think I will try it with that one.

Questions besides that:

If you have a field dropdown with the following options:

ID \| Label

1 Red

2 Blue

3 Yellow

and you make an entry where you select option 3

Now you change the ID to lets say 5 - what will happen to the entry? Will it drop its value?


Tags: confiforms

confluence-server

server