youngmon/atlassian-qna huggingface dataset:
subtree pulls into the root of the repository
Asked by Mikael Sandberg:

There is a bug reported against Sourcetree that when doing a subtree pull it puts the new files/folders under the root of the repository instead of under the subtree. The original bug is [SRCTREEWIN-1621](https://jira.atlassian.com/browse/SRCTREEWIN-1621) and I was going to create a new one and link it to this one since I see this issue when using Sourcetree 3.0.15, but all I see when trying to create the bug is this:

![Create Issue.png](/t5/image/serverpage/image-id/42864i55C6BDA719CA417A/image-size/large?v=v2&px=999 "Create Issue.png")

If you do the pull from git bash it adds it correctly under the subtree as expected. From what I see from within Sourcetree it looks like it ignores the local relative path as the starting point for the merge and instead uses the path that is coming from the subtree repository.


Answers:
author: minnsey
body: Hi  

I've added 3.0.15 to the lists of affected versions in SRCTREEWIN-1621. Thanks for reporting.
SourceTree - Custom Pull Request Query
Asked by chip wood:

We're currently using TeamForge for a project at work and the query to make a pull request doesn't quite line up with what source tree creates.

The only way to define a custom URL is to choose 'Stash', but the format for the query for Stash doesn't match our TeamForge pull request query. This is the relevant part of the URL generated by SourceTree using Stash:

```
projects/29418/repos/blueline_3-main/pull-requests?create&sourceBranch=sourcetreepullreq
```

The actual query for our TeamForge instance looks like this:

```
projects.blueline_3/git/scm.main/reviews/create?sourceTreeId=refs%2Fheads%2Fsourcetreepullreq
```

Is there a way to define a custom query? We'd love to be able to use the 'generate pull request' feature in SourceTree as opposed to manually navigating to the form via our browsers.

Thanks!


Answers:
author: bgannin
body: Hi Chip,

We don't expose that in Sourcetree for customization. Each supported service uses a different format and we want to manage the interactions with them to ensure proper behavior. I recommend filing a ticket in our trackers ([Mac](https://jira.atlassian.com/browse/SRCTREE/) and [Windows](https://jira.atlassian.com/browse/SRCTREEWIN/)) for TeamForge support if there isn't one already so folks can vote and comment. We review these when planning future releases.

Thanks,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: chip wood
body: Thanks Brian - I'll give that a shot. We might be switching from TeamForge to GitLab anyway and I don't see that as an option either - I'll test the supported services to see if their queries match GitLab's before proceeding with a ticket.

Thanks again!


author: bgannin
body: [@chip wood](/t5/user/viewprofilepage/user-id/1980086) We added [GitLab support](https://blog.sourcetreeapp.com/2018/08/29/sourcetree-3-0-branches-out-with-new-hosting-services/) in the 3.0 updates for both Mac and Windows so you're good to go there ?
Issue installing latest version of Sourcetree for Mac
Asked by fvsdt:

I cannot install Sourcetree on my Mac. Every time I try to install it I get this error. I have attempted to uninstall it, download a new installer, and reinstall it with no success. Anyone have ideas? I can provide more of the error log if need be.

Crashed Thread: 4 Dispatch queue: com.apple.root.default-qos.overcommit

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)  
Exception Codes: 0x0000000000000001, 0x0000000000000000  
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4  
Termination Reason: Namespace SIGNAL, Code 0x4  
Terminating Process: exc handler \[78594\]


Answers:
author: bgannin
body: Hi Freddie,

Please file a ticket on our [public issue tracker](https://jira.atlassian.com/browse/SRCTREE/) with the steps performed (there is no installer on Mac but there is a setup assistant on first launch) and attach the full crash log. This allows us to triage, prioritize, and otherwise manage issues. Be sure to include version information for both your operating system and the app.

Thanks,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: fvsdt
body: Hi Brian,

I'm not able to submit a ticket on the link you provided. When I click the Create button, I'm not presented with an acceptance button. Any ideas?

![2019-01-17_09-53-06.png](https://community.atlassian.com/t5/image/serverpage/image-id/42761iCF74582D8256D3BB/image-size/large?v=v2&px=999 "2019-01-17_09-53-06.png")
My SourceTree keeps crashing when I check out my branch into it
Asked by ed_faktor:

When trying to open a branch from bitbucket with Sourcetree, a Sourcetree windows appears for a few seconds, and then a bug report appears,.  

I have sent the report and provided my name and email (Ed Faktor)  

Would a Altassian tech be able to assist me?  

Regards,  
Ed


Answers:
author: bgannin
body: Hi Ed,

Sourcetree is a free product from Atlassian which we support primarily here on Community. We aren't able to individually address each or crash report. If you'd like to elevate its visibility to developers and for others to comment and vote on you might want to file a ticket instead ([Mac](https://jira.atlassian.com/browse/SRCTREE/) or [Windows](https://jira.atlassian.com/browse/SRCTREEWIN/))

Cheers,

Brian Ganninger  
Senior Mac Developer, Sourcetree
Sourcetree and Beyond Compare Diff/Merge reset all the time
Asked by Rob Vice:

The Beyond Compare executable always changes back to the incorrect one causing the diff to fail on more than one file.

Sourcetree does not appear to save the path correctly and I have to modify it almost every time I relaunch it.

Sourcetree should use BComp.exe and not BCompare.exe for the Diff. This is the same as the Merge tool, which does appear to work properly.


Answers:
author: Rob Vice
body: Update to SourceTree 3.1.1


author: minnsey
body: Hi  

Can you check you are running v3.0.15 this loss of settings should be fixed in that release.  

We are looking into the use of BComp.exe vs BCompae.exe as it appears to work correctly for us and looking at <https://www.scootersoftware.com/v4help/index.html?command_line_reference.html> other than opening an instance per comparison vs opening a tab per comparison they don't appear to operate differently. However if you have additional information please let us know.

comments: author: Rob Vice
body: BComp must be used or every secondary diff will only load the right pane and not the left. I updated to 3.0.15 and this issue is still present.

I was told to use BComp.exe and not BCompare.exe by the folks at Beyond Compare.


author: minnsey
body: Thanks for the information


author: Rob Vice
body: Additionally, closing SourceTree and reopening it returns the Beyond Compare diff settings back to BCompare.exe (my original problem reported here).

I believe it relates to the way BCompare.exe only opens one window and BComp.exe pushes to the same open window: <https://www.scootersoftware.com/v4help/index.html?calling_bc_from_other_applications.html>


author: Rob Vice
body: Looks like this is now fixed in 3.1.1 (per release notes and testing)


Tags: beyond-compare
khi t?i clone th? n? l?i b? nh? v l? sao ??
Asked by M?nh B?i:

![clone.JPG](/t5/image/serverpage/image-id/42562i360983435B8A66FF/image-size/large?v=v2&px=999 "clone.JPG")


Answers:
author: Ana Retamal
body: Hi [@M?nh B?i](/t5/user/viewprofilepage/user-id/2567260), welcome to the Community!

First of all please note that we won't be able to provide a response in Vietnamese, we'll have to continue this conversation in English :)

I'm not really sure what the issue is, are you getting any problem when cloning? If so, can you post the error message you're getting?

Kind regards,

Ana

comments: author: Nguyen Tran
body: Looks like the path to the repo is wrong.


author: Ana Retamal
body: The URL looks good to me, I've tried reproducing this issue with my account and it worked.

* Have you tried setting up your remote account as explained [here](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html)?
* Have you tried cloning from the command line, for troubleshooting purposes?

If the command line works, can you tell us whether you're using Sourcetree for Windows or Mac, and which version do you have?

Cheers!

Ana


Tags: bitbucket

language

language-vt
SourceTree????????????????????
Asked by ?? ????:

ver2.74?????????

Atlassian?????????????????Chrome??????????????

???SourceTree??????????????????????????????????????????(?????????)

mac??????????????????????????????![????????? 2019-01-16 14.13.17.png](/t5/image/serverpage/image-id/42553iDCC36014C5FCC732/image-size/large?v=v2&px=999 "????????? 2019-01-16 14.13.17.png")


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

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


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

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


author: ?? ????
body: ?????????????

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


Tags: language-ja
Create a local repository
Asked by Ajay Kumar Gupta:

I am very new to SourceTree and Git and trying to create my first local repository.

When i am creating a new local repository using SorceTree , the Project directory (which contains .git file) is not getting created.

Please help me get started.

Thanks


Answers:
author: Yogesh Mude
body: HI [@Ajay Kumar Gupta](/t5/user/viewprofilepage/user-id/2566293)

Welcome to the community!

Please have a look at the below article for git commands and try it.

<https://community.atlassian.com/t5/Git-articles/Git-Basic-Commands/ba-p/866569>

comments: author: Ajay Kumar Gupta
body: Thanks Yogesh.!! Really appreciate your help.
anyone encountering an authentication issue!?
Asked by raffi:

i've tried the latest sourcetree version and older one 2.3.5.0

the same issue with both version - see attached/embedded screenshot below

the pop-up labeled (P) keeps coming up!

i am using the same credentials that lists the 2 repositories in the top/1st screenshot.

![Source tree.png](/t5/image/serverpage/image-id/42429i046D5CB5051D0E6B/image-size/large?v=v2&px=999 "Source tree.png")


Answers:
author: minnsey
body: Hi  

You need to upgrade your Git Credential Manager (GCM) for Windows version.  

The GCM is bundled with Git for Windows. If you are using a System Git install you can upgrade to Git 2.20.1 or higher alternatively upgrade Sourcetree and then update the Embedded Git.


Tags: bitbucket
SourceTree Repository browser: change multiple local paths simultaneously
Asked by simplytech:

Hello!

All my repositories used to be in **/first/path/to/projects**

Now they are in **/second/path/to/projects**

I cannot create a symlink from /first to /second, so please don't suggest this as a solution.

I need to be able to change all the paths in the Repository Browser window. I started doing it manually one by one, then I decided to ask this question:

**Is there a way to do a global search and replace?**

I tried editing **\~/Library/Application Support/SourceTree/browser.plist** but after I saved it, I got an empty Repository Browser as if I had deleted everything.

I vaguely remember something about macOS needing to "import" plist files after you edit them. If this is the case, I don't know how to do that.

Any help would be greatly appreciated!


Answers:
author: bgannin
body: Hi Alain,

The plist is saved in the "binary plist file" format for performance. This is only properly editable by certain text or dedicated editors. If your editor handles it then you can search \& replace for the ***exact***replacements. That should, in theory, work.

If not there are two options:

1. open each broken bookmark - it'll ask for the new location

2. delete bookmarks, use the "scan directory for repositories" feature to re-add

Hope that helps a bit.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: simplytech
body: Thanks Brian for your prompt reply and suggestions!

I did try editing the binary plist file in a binary editor. I also tried editing using Xcode. Both resulted in a completely empty repository browser window, even if I just edited one path. Maybe the binary plist format also contains the string length somewhere?

I know about the scan directory feature. Unfortunately, it's more complicated than a simple scan. I name my bookmarks manually. Therefore, I need to keep the names and only change the path. The automatic scanning will choose names automatically based on the last child in the path tree, e.g. I had given /first/path/to/projects/supplier-1/proj-1 the name "Supplier-1/Proj-1" and /first/path/to/projects/supplier-2/proj-1 the name "Supplier-2/Proj-1". The automatic scan would name both "proj-1"
remote: Invalid username or password
Asked by deborah_morrison:

Unable to login with Bitbucket using Sourcetree for the following error messages:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin  
fatal: HttpRequestException encountered.  
An error occurred while sending the request.

remote: Invalid username or password  
fatal: Authentication failed for 'https://CBL_deborah_morrison@bitbucket.org/cblproperties/cbl-corporate/'

I followed the instructions to reset password in Bitbucket, login to Bitbucket and validate the in SourceTree Tools \>\> Options \>\> Authentication delete creds then re-add as Hosting Service Bitbucket, Hose URL <https://bitbucket.org/>, Preferred Protocol HTTPS, Authentication Basic, Username CBL_deborah_morrison clicked Refresh Password and entered successfully then the Authentication OK message appears bottom left. But when try to PULL repository, get the error messages above.


Answers:
author: Gonchik Tsymzhitov
body: Please, have a look this thread

<https://community.atlassian.com/t5/Sourcetree-questions/remote-Invalid-username-or-password/qaq-p/862226>

<https://community.atlassian.com/t5/Bitbucket-questions/Invalid-username-or-password-from-Sourcetree-with-app-password/qaq-p/855327>

comments: author: deborah_morrison
body: The info was useful but did not resolve credential issue. It was necessary to uninstall and remove all registry entry references of SourceTree/Atlassian. Then installed fresh, re-cloned and now credentials stored correctly.
How do I have an SSH key added to Pageant on SourceTree load?
Asked by adamscoble:

Hi all,

I recently installed SourceTree on my laptop, and it asked if I wanted to add an SSH key, which I did. Now, each time I open SourceTree I am prompted by Pageant automatically for the password for the key. However on my desktop I have to manually open Pageant and add the key myself.

How do I configure it to automatically add the key and prompt for a password, without having that dialogue box? I tried adding it to the SSH Client Configuration in Tools -\> Options, however that doesn't seem to work.

Any help greatly appreciated!


Answers:
author: adamscoble
body: Actually, I lied. I just tried adding it in Tools -\> Options again, removed the key from Pageant, closed Pageant and restarted SourceTree and it popped up. Not sure what I did before (perhaps I didn't restart everything properly), my apologies!

comments: author: Ana Retamal
body: Glad you figure it out, Adam :)

Have a good day.


author: uzair ahmed
body: just go to tools-\>options-\>general-\>SSH Client Configuration and add the path to your SSH key, now whenever you open sourcetree it will prompt you to enter passphrase for you key and load it automatically (Version 3.0.17![Screenshot (15)_LI.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/52458i8778E2B5C6BC2476/image-size/large?v=v2&px=999 "Screenshot (15)_LI.jpg"))

comments: author: Nate
body: Is there a way to save the passphrase without that prompt window?


author: Ana Retamal
body: Hi Adam!

Did you already try the steps listed in the article [Set up SSH key with Sourcetree?](https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html#SetupanSSHkey-ssh3SetupSSHwithSourcetreeonWindows) (There's an option for loading an existing key).

Let us know!

Ana

comments: author: adamscoble
body: Hi Ana,

Thanks for the reply. I'm not having an issue with setting up SSH, it's that when I open SourceTree on my laptop Pageant pops up automatically with the private key selected and I need to enter the password.

Whereas on my desktop I need to manually add it each time. I'm wondering how to have it auto added.

Forgive me if I'm missing something in the article you linked, but I can't seem to find how to solve this in there. I'd have thought adding it to the Tools -\> Options section would fix it, but it doesn't seem to.


Tags: pageant

ssh
Install Sourcetree Enterprise on a server without Web Browser access
Asked by jak474:

Is there a way to install Sourcetree Enterprise on a server that does not allow web browser access? Due to security restrictions, I am unable to use the product without an alternative means of authentication that does not require access via a web browser.

I have followed the instructions provided for MSI installation using Sourcetree Enterprise version 3.0.15 on Windows Server 2012 R2: <https://confluence.atlassian.com/sourcetreekb/sourcetree-enterprise-and-msi-installation-947848769.html>


Answers:
author: bgannin
body: Hi Jeramy,

The Bitbucket Server registration option works without using a web browser. Unfortunately we don't have any other alternatives to Bitbucket Cloud at present.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: jak474
body: Thank you for responding.

That is unfortunate. Sourcetree is my preferred tool, but without an alternative means of registration it won't meet our needs.

Is there a plan to implement an alternative? Particularly for an enterprise application this limitation seems a flaw.

Jeramy


author: bgannin
body: You can vote and comment via our public tracker: [SRCTREEWIN-5417](https://jira.atlassian.com/browse/SRCTREEWIN-5417)


Tags: windows
How to preview the full diff when amend commit
Asked by lijunle:

Hi,

When turn on amend commit, how can I preview the full diff result with the previous commit? This is the default behavior in \`git gui\` but not in SourceTree.


Answers:
author: bgannin
body: Hi,

This is not currently possible but is a great suggestion. Please file tickets for [Mac](https://jira.atlassian.com/browse/SRCTREE/) and [Windows](https://jira.atlassian.com/browse/SRCTREEWIN) to request the functionality.

Thanks,

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: lijunle
body: OK. Tickets created:

* For Mac: <https://jira.atlassian.com/browse/SRCTREE-6374>
* For Windows: <https://jira.atlassian.com/browse/SRCTREEWIN-11177>
Sourcetree: Can't see all repos that are available to me in Bitbucket
Asked by jhagan:

Hi there. I have admin access to a number of private repos. I recently reinstalled my mac, so this included a fresh install of Sourcetree. Prior to the reinstall, I could see all of my repos in Sourcetree, but now I can only see repos that I have created myself, not ones that I've been invited to by others (again, of which I have admin privileges ). Any suggestions?  

Thanks!!


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

Are you still experiencing this? If you still can not see the other repos, make sure you connected your Bitbucket account correctly following the steps at [Connect your Bitbucket account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html)?

Let us know how it goes!

Ana


Tags: bitbucket

mac
Sourcetree display branch name in tab title
Asked by Hrishikesh Pundlik:

Is there a way to display the active branch's name in the open tab's title?


Answers:
author: minnsey
body: Hi  

No, I'm afraid not, the tab name is taken from the bookmark name.  

You can raise a feature request at <https://jira.atlassian.com>

comments: author: Hrishikesh Pundlik
body: Thanks, I have logged [SRCTREE-6366](https://jira.atlassian.com/browse/SRCTREE-6366).
Which permissions needed for source tree using an APP password?
Asked by RobbieRobski:

I'm trying to setup my app password but my first attempt is failing.

I followed the instructions here  
<https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html>

I have set full permissions for Repositories and Pull Requests

Failed to check login for user \[myuser\]  
Your credentials lack one or more required privilege scopes.  
Your credentials lack one or more required privilege scopes.

Which other group does it need permissions for?

<http://prntscr.com/m5y9d9>  

I've tried adding Projects but I get the same thing  

Lastly I even tried all of these [http://prntscr.com/m5yanr](http://prntscr.com/m5yanr??) and I'm still getting the same privlege scopes messages.

Doesn't seem to make a difference if I choose https or ssh  

Oath used to work great. And I wouldn't mind having to enter my TFA every session...


Answers:
author: Richard H Tribe
body: *You will certainly need the Account Read at least as Sourcetree attempts to read your user profile to confirm the credentials are good.*   

What sort of useless answer is this?? 'Account read at least.. why don't you know exactly what App permissions are required to enable Sourcetree -- ***Sourcetree is YOUR product*** .   

How about you spell out the minimum permissions it requires. I gave up trying to find the minimum mix and ended up just giving sourcetree app permissions to EVERYTHING so the bloody thing would work.  

It's this kind of rubbish support from Atlassian that is why I've migrated most of my gits over to Github.

comments: author: Pete Wolk
body: couldn't have said it better


author: Dylan Jacobs
body: Account Read and Repositories Read and Write are required, worked in SourceTree


author: RobbieRobski
body: The solution per help desk. Use SSH protocol and not HTTPS.  
With SSH it will work either with Basic or OAuth


author: fgiannotti
body: Did you clean the file

%localappdata%\\Atlassian\\SourceTree\\passwd

before setting the App Password? If not my SourceTree doesn't work.


author: minnsey
body: Hi  

You will certainly need the Account Read at least as Sourcetree attempts to read your user profile to confirm the credentials are good.

comments: author: minnsey
body: Also can I ask why you stopped using OAuth?


author: RobbieRobski
body: Because your documentation specifically says to use basic

<https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html>


author: Aaron Lawrence
body: Oh, this is hilarious. No response? Are we supposed to use OAuth or Basic with App Password, Atlassian?


author: minnsey
body: You will need to use Account:Read and Repositories:Read and Repositories:Write.  

I would strongly recommend using OAuth though because it is already configured with the correct permissions.


author: Aaron Lawrence
body: Except it isn't on Mac.


Tags: bitbucket
Too many authentication failures
Asked by Vladimir Kuzmin:

Hello. I have Sourcetree V3.0.15 installed. When I try to pull (for example) from our private Git repo (connecting via SSH), I receive following error  

Access denied  
Access denied  
Access denied  
Access denied  
Access denied  
FATAL ERROR: Server sent disconnect message  
type 2 (protocol error):  
"Too many authentication failures for user_name"

For auth, we use login/password scheme, so switching to OpenSSH is not an option.   
Is there any solution for this problem? I remember that prior to Sourcetree V2 there was no such problem.


Answers:
author: Vladimir Kuzmin
body: Looks like there were some problems with credentials stored, because removal of SourceTree passwd file (as mentioned [here](https://community.atlassian.com/t5/Sourcetree-questions/How-to-update-HTTP-S-credentials-in-sourcetree/qaq-p/297564)) solved the problem.  

Anyway, I still don't know why it happened. Credentials were exactly the same

comments: author: Chris Middleton
body: Thank you. This helped!


Tags: windows