youngmon/atlassian-qna huggingface dataset:
Error: remote: Empty password in SourceTree
Asked by kairaca:

I had to install a new hard drive and trying to set all my software up again.

I kept getting an error about my bitbucket pw URL being empty in SourceTree, I noticed there was a red X next to my username in SourceTree, so I deleted and added my account again in SourceTree. It seemed to go through fine, no more red x, but now getting this error when I try to clone any reposit, Don't understand why it keeps saying authentication is failing when it seems fine on the bitbucket website and when I add the account to SourceTree.

Note: I removed personal info.

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote https://\[username\]@bitbucket.org/site_team/site.git  
Output:  
Error: remote: Empty password  
fatal: Authentication failed for 'https://\[username\]@@bitbucket.org/site_team/site.git/


Answers:
author: kairaca
body: I deleted all local data, and then reinstalled. There were some install glitches, but, in the end, it all worked out.


author: kairaca
body: I need to add that I tried to uninstall SOURCETREE and it WOULDN'T UNINSTALL! It disappeared from the Uninstall Programs dialog immediately but NOTHING WAS UNINSTALLED!!


author: Ana Retamal
body: Hi Kaira! I've seen that there's a typo in one of the lines, I was wondering if this was only caused when you pasted the error here, or if it's actually mistyped in your configuration:
> https://\[username\]***@@***bitbucket.org/site_team/site.git/

If so, can you confirm that you connected your account following the steps at [Connect your bitbucket account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html ).

Apart from that, can you try performing the same operation using the command line so we can see if it's an error with the authentication or an error in Sourcetree?

Let us know!

Ana

comments: author: kairaca
body: That typo was mine. I just didn't want to use my private domaine information and username.

I did follow those steps and connection and authorize Asian seemed fine but it's not cloning. The only other thing I can think of is when I transferred my software over to the new hard drive I did include the local app data. Maybe there's a conflict? Doing that allowed source tree to recognize my repositories though I think


author: Enrique Gonz?lez
body: Having exactly the same problem:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://me_here@bitbucket.org/team/repo.git  
Output:  
Error: Logon failed, use ctrl+c to cancel basic credential prompt.  
remote: Empty password  
fatal: Authentication failed for 'https://me_here@bitbucket.org/team/repo.git/'

Does someone know how to fix this? And i don't mean sending us to a basic manual with old screenshots that are not what you see in the current version.
How to for dummies. First time using sourcetree and i don't know what i'm doing.
Asked by rezartr:

Hello everyone.

Hope you are having a nice day/evening.

As you may have already noticed from the title/question, I need a lot of help in understanding how this works.

Basically, I work as a freelancer and I had a client who needed me to make some changes to a website. Till now, I've only used the old fashioned way and never used before git/bitbucket.

They sent me a link to a repository which I cloned and they gave me access to the online version as the website it's running on WordPress.

My issue here is that I don't know how to make the changes the client asked me to, via SourceTree App.

Am I supposed just to say what am I going to do "commit", paste changes to file or CSS code or what... :/  

Does anybody happen to have a tutorial for dummies like myself so I can start working and make the changes on the client website?  

Thank you very much for taking time to read this.  
Any suggestion will be much appreciated.

Regards.


Answers:
author: bgannin
body: Hi Rezart,

I'd recommend checking the Help menu, we've got a couple resources that will hopefully start you on a path to success. The first is "[Getting Git Right](https://www.atlassian.com/git)", an Atlassian guide about Git in general. The second is "[Get Started with Sourcetree](https://confluence.atlassian.com/get-started-with-sourcetree)" which is dedicated to app basics.

Cheers,

Brian Ganninger  
Senior Mac Developer, Sourcetree
ST vesion where external diff tool is working
Asked by MaxAlekseyev:

Hi all,

Who knows the version where external Git merge toos working Ok?

I have 2.4.8.0 for now on Win 8x64. I tried a lot of ways, but no success.

![](https://i.imgur.com/BnSlIkY.png)

![](https://i.imgur.com/ruR7nC4.png)

\[mergetool "sourcetree"\]  
cmd = 'C:/Program Files/Araxis/Araxis Merge/compare.exe' -wait -merge -3 \\"$LOCAL\\" \\"$BASE\\" \\"$REMOTE\\" \\"$MERGED\\"  
trustExitCode = true  
\[difftool "sourcetree"\]  
cmd = 'C:/Program Files/Araxis/Araxis Merge/compare.exe' \\"$LOCAL\\" \\"$REMOTE\\"

Thanks


Answers:
author: MaxAlekseyev
body: Checked all versions till 1.9.x - no success. Diff is working, revolve - not.


Tags: external

git

merge
How to sort git tags in SourceTree sidebar?
Asked by Dimas Begunoff:

This has been an issue from day one (years ago). I am rather surprised it is still around.

I have searched and searched and by all indications this appears to have been fixed, that is issues/tickets closed on the matter.

However, when searching through preferences and other option menus in SourceTree I can not find a solution through the UI.

I have even changed my local git global config tag.sort option using:

```
git config --global tag.sort -version:refname
```

I thought SourceTree would be using this setting, but it does not.

How can I resolve this, please?

SourceTree 2.7.1 (159)

Embedded Git 2.15.1 (I have also tried with system git 2.14.2)


Answers:
author: bgannin
body: Hi Dimas,

Sourcetree does not currently support reading this setting from a Git config or have its own mechanism for changing the way tags are sorted currently. Please vote and/or comment on this ticket: <https://jira.atlassian.com/browse/SRCTREE-2845>

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Dimas Begunoff
body: Thank you for the reply and link to the issue, I will vote and keep an eye on it.


Tags: git

tag
Sourcetree 1.9.8 unable to connect to Github SSL error
Asked by William Green:

I have a MacBook running OS X Lion. This is the highest version of the client I can run. Someone stole my computer at the start of the semester and, out of necessity, I've reverted to using my early 2008 MacBook.

When I attempt to connect to an account, I get this error

**Login failed for your GitHub account.**

**Login error**

**The remote service said: 'Error Domain=SDNetDomain Code=3 "Connection returned NULL data" UserInfo=0x7fc99a879440 {NSLocalizedDescription=Connection returned NULL data, NSUnderlyingError=0x7fc99ac74540 "An SSL error has occurred and a secure connection to the server cannot be made."}'**

I've checked my login info, it seems it never connects to the Github server to login because of some SSL issue. Any ideas to bypass this? I really need a working client for a project I'm working on in class.


Answers:
author: minnsey
body: Sorry about your computer.  

It is very likely you are running an old version of Git. GitHub recently removed TLS 1.0 and 1.2 from their supported protocols, it looks like you are hitting that.  

Try updating to the latest Git.


Tags: mac
how can I connect to remote repository in gitlab via sourcetree?
Asked by Jay bhatta:

I've added a ssh key in my gitlab profile and tried to connect via sourcetree. as new-\> clone from URL. here I've entered the SSH URL of the repository in gitlab, and it says it's invalid repository URL.

2f authentication enabled in gitlab. I'm using sourcetree version 2.7.1 in mac.

anybody has already similar issue? or anybody can help me?

Thanks

Jayraj


Answers:
author: Ana Retamal
body: Hi Jay! Sourcetree does not directly support GitLab as a hosting service. This request is tracked in [SRCTREE-1037](https://jira.atlassian.com/browse/SRCTREE-1037). While you can't browse remotes or utilize any other extended integrations you are able to clone the repo via URL and use the rest of Sourcetree without restriction.

You're running into one of the known limitations of 2FA and SourceTree at the moment. Currently, SourceTree will use SSH to do most everything with Bitbucket except build a list of repositories. There is an open feature request [here](https://bitbucket.org/site/master/issues/11774/application-specific-passwords-or-tokens) to allow application specific passwords, this would allow SourceTree to use that set of credentials and get the list of repositories. Until then, you'll need to manually add the repositories into SourceTree as it's not possible to authenticate with SourceTree to Bitbucket once 2FA is turned on.  
You might want to try the solution provided at [2fa with Github in Sourcetree](https://confluence.atlassian.com/sourcetreekb/two-factor-authentication-2fa-with-github-in-sourcetree-402033499.html), but please keep in mind that those were designed for Github, not Gitlab, so they might not work in your case.  

Hope that helps!

Ana

comments: author: Ant?o Almada
body: This has changed with the release of 3.0: <https://blog.sourcetreeapp.com/2018/08/29/sourcetree-3-0-branches-out-with-new-hosting-services/>


Tags: gitlab

mac
How Do I Turn Back on Three-Way Merge?
Asked by PatrickRyder:

Sorry for the vagueness of this question.

When I had a merge conflict, I used to get a warning dialog. At this point, opening my external diff tool (Beyond Compare 4) showed three panes, allowing a 3-way merge. This is the behaviour I want.

I made the mistake of clicking the little checkbox in the corner of the SourceTree dialog, thinking this would just get rid of the warning dialog, which really isn't necessary to see all the time. Unfortunately, this seems to have made a permanent change to the way SourceTree works. Now it automatically stages what it can and opening my diff tool shows only two panes, one of which shows the familiar text-based Git markers shown below.

Does anyone know how to go back to the original state, where a merge conflict gives a 3-way merge?

Kind wishes \~ Patrick

**Markers I am now seeing when I open my external diff tool:**

```
<<<<<<< HEAD
???Console.WriteLine( FeatureSix.Name );

=======
???Console.WriteLine( FeatureFive.Name );
>>>>>>> feature_five
```


Answers:
author: Mike Corsaro
body: Hello! While I'm not sure why 3-way merge isn't working anymore, you could probably try and verify the current settings for your merge tool by opening "C:\\Users\\{USERNAME}\\.gitconfig" and looking for the "\[mergetool "sourcetree"\]" section. It should look something like this:

    cmd = '{PATH TO BC4}' \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"

comments: author: PatrickRyder
body: Thank you for the reply, Mike. Unfortunately, that all appears to be correct.

I turned it off by clicking an innocent-looking check box on the dialog that pops up as Beyond Compare was launched. The dialog is, in my opinion, badly worded because I thought I was just turning it off for that particular commit. It seems to have changed a setting in the UI somewhere and I can't find anywhere in the UI to turn it back on.

Guess I'll have to try a reinstall.

- Patrick
When a team member push to repo my changes become a branch - Sourcetree/Git
Asked by Alex Labanino:

When a team member pushes to the repo my changes become a branch. So, in order for me to push, I have to Stash my changes, make a Pull and then Apply Stash. If I try to Pull without Stashing I get a merge error. Any work around on this? You know, make a pull and then push my changes without stashing. Not sure what I changed in my setting that is causing this. Thanks.


Answers:
author: Mike Corsaro
body: Hello! This sounds like you're both on the same branch. You can verify which branch you're on from the indicator in the sidebar. If you're both on the same branch, you'll need to make a new branch to prevent this from happening (and when you're done with the work on that branch you'll need to make a pull-request to merge the changes to the main branch).

comments: author: Alex Labanino
body: Yes, we are working on the same branch and I get an error when trying to Pull because git is avoiding to overwrite my local changes. Creating a branch is the right way. This is a good read about: **[Merging vs. Rebasing](https://www.atlassian.com/git/tutorials/merging-vs-rebasing "Merging vs. Rebasing")** . Thanks.


Tags: bitbucket
Open Local Repository (not in ST history) & Rename Tab / Project Confusion
Asked by megabrian:

I am just trying to open a local repository since I have moved it on my local computer, or for whatever reason it's not in the local repositories history in my sourcetree.

<br />

So I go to file open and select that folder that has the .git hidden folder as a first-level child, that seems to open and be connected to the remote repository just fine...

<br />

My two issues from here are that because I always use the folder name "current" to distinguish the live folder from other archive folders in my windows folder structure within each client folder, the tab says "Current" in Sourcetree if I open it this way, so I need to rename that to the client name. But for whatever reason neither the client name nor the word "current" appear in the recent local repositories, which as I understand is the only place I can go to rename the project tab? So if I close "current" in source-tree, why can I not find it in sourcetree later? How can I rename my project if I open from a local folder? Am I opening the correct folder?

Thanks!


Answers:
author: Mike Corsaro
body: Hello! This is probably a bug: opening a repo from the "Open" file menu should also bookmark it, but it currently doesn't.

To rename the tab and bookmark the repo for future use:

* Open a new tab
* Drag the repo folder from explorer into the the "Add a new bookmark or drag \& drop..." area
* Right click on the newly added repo, and select "rename"
Source tree cannot connect to github.
Asked by Ibrahim Aziz:

My sourctree previously working fine.

Then now suddenly i cannot pull, push or clone from github. Everytime i try to refresh the remote repositories keep getting error. It says authentication required, i keep facing github login, input the correct input, still fail to refresh. I already try update to the latest source tree and download latest github scm. Even try to remove and add account still not working, also try delete all my github related key chain, still not working. I got like 3 project running and pending for push, what should i do ?. If somebody has found the answer, please help !, remote if you can, i've been looking for the whole day just to deal with this. Thank you.


Answers:
author: Ana Retamal
body: Hi Ibrahim, the solution for that was shared in this thread: <https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-setup-Sourcetree-to-access-Github-now-that-they/qaq-p/735377>

Basically, you just need to update your version of Git so that the credential manager supports Github's recent security changes and you should be good.

As an alternative, you can try pushing using your command line.

Best regards!

Ana
Lack of Pull Request feedback in the Sourcetree GUI
Asked by Eric Lawson:

Hi,

I am testing Sourcetree interactions with our in-house Bitbucket server, uploading code into a repo and simulating code changes.

As part of this I have created a few pull requests.

Having already undertaken significant, similar testing using Visual Studio Professional 2015 (VSPro2015) with the Bitbucket Extension by Mistyk, I have to say I am disappointed with the Sourcetree GUI.

1. Rather than a baked in GUI element for Pull Request creation, Sourcetree simply fires up a browser window into our Bitbucket Server account. The MiskyK extension in VSPro2015 has a very functional interface right within the GUI
2. Once the Pull Request has been created essentially using the Bitbucket feature (prepopulated from Sourcetree), there does NOT appear to be any feedback to developers of that repo (including the author of the pull request) that there is a pull request on the branch. Of course I know I created it but I have to rely upon an email or check back in Bitbucket to track any changes to the status of the pull request.

So in regards to 2, have I got this wrong or are there really no indicators, alerts etc in Sourcetree? The only one I can see at the moment is a request to rate the product!

Overall I am very impressed with all the Atlassian products we are adopting (Confluence, Jira \& Bitbucket) but this potential omission makes development version control via Sourcetree a poor cousin of Visual Studio Professional 2015 (who would have thought).

Thanks

Eric


Answers:
author: Mike Corsaro
body: Hello! We don't currently have indicators in the UI for pull requests, but it's something on our roadmap for a future release. Thanks for the feedback!
On Mac, doesn't update uncommitted files number
Asked by dbaroncelli:

Even if I committed all files, it still shows (with the number) that there are some uncommitted files.

Is this a bug? or there is an option to always show an updated list?

until a few weeks ago, it didn't have this problem

![Schermata 2018-03-28 alle 11.28.54.png](/t5/image/serverpage/image-id/18090i7D3ADC5CA28A772D/image-size/large?v=v2&px=999 "Schermata 2018-03-28 alle 11.28.54.png")


Answers:
author: bgannin
body: We're working on improvements for badge update reliability in 2.7.2 (our current beta) and 2.7.3 (starting development soon.) Thank you for your patience.

Brian Ganninger  
Senior Mac Developer, Sourcetree
Bug // Windows ver2.4.8 keeps crashing after click the + tab, on 4 PCs separately installed.
Asked by Lee Zhi Chien:

As title.

Latest version is very unstable.


Answers:
author: Mike Corsaro
body: Hello! Could you link the bugsplat report, or provide a log file please? You can find the log file here:

```
C:\Users\{USERNAME}\AppData\Local\Atlassian\SourceTree\sourcetree.log
```

comments: author: Lee Zhi Chien
body: Hi,

May I know where to attach the log file?

Thanks


author: Lee Zhi Chien
body: Hi I have added [SRCTREEWIN-8507](https://jira.atlassian.com/browse/SRCTREEWIN-8507)


author: Mike Corsaro
body: So there's something odd happening -- there's a lot of errors in the log file regarding invalid file permissions, and a null dispatcher.

For now, can you try deleting your bookmarks file? It's located in:

```
C:\Users\{USER_NAME}\AppData\Local\Atlassian\SourceTree\bookmarks.xml
```


Tags: windows
How to fix SourceTree's "External diff"? (no longer working)
Asked by matt_h:

Within the last week or two, SourceTree lost the ability to open the "External diff" tool: when I select External diff (or hit Ctrl-D), it no longer opens the external diff tool. Has anyone else seen this as well and/or does anyone have any pointers for how I might fix it?  

I'm using Windows 10, SourceTree version 2.4.8.0 (latest, last I checked), and Source Gear's DiffMerge tool (version 4.2.0, which is probably old). I can open DiffMerge directly, even from the command line. Example:  
"C:\\Program Files\\SourceGear\\Common\\DiffMerge\\sgdm.exe" local.env local.env.dist  

SourceTree is configured to use DiffMerge as the External Diff Tool and as the Merge Tool.  

I looked at [this Atlassian Community question](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-external-diff-tool/qaq-p/35047), but it really seems to be about a different issue. (SourceTree on my computer is already allowed to modify the global git config.)  

I tried changing the External Diff option to Custom and manually selecting the DiffMerge executable (C:\\Program Files\\SourceGear\\Common\\DiffMerge\\sgdm.exe), with or without quotes, and passing the $LOCAL and $REMOTE as the parameters in the Arguments field in SourceTree (with quotes and with backslash-escaped quotes).  

Any ideas? Thanks.


Answers:
author: Mike Corsaro
body: Hello! Could you do the following:

* Open the Process Viewer (Tools \> Process Viewer...)
* Run the external diff command
* Check the process viewer output and see if a command is run that looks like this:
  *

    ```
    git {STUFF} difftool -y --tool=sourcetree {SHA}^..{ANOTHER SHA} -- {THE FILE}"
    ```

* If that command is showing up, try and then run it from the command line (just hit the 'Terminal' button in Sourcetree and paste the command in. You can save the process viewer log and copy+paste from there)
* If that command is not running, could you post what is?

Thanks!

comments: author: matt_h
body: Hi Mike,

Thanks for your input. Yes, that command is showing up. Example:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false difftool -y --tool=sourcetree 5e3db38^..5e3db38 -- docker-compose.yml
```

And here's the output:

```
/mingw64/libexec/git-core/git-mergetool--lib: eval: line 124: unexpected EOF while looking for matching `''
/mingw64/libexec/git-core/git-mergetool--lib: eval: line 125: syntax error: unexpected end of file
```

Any ideas? Thanks again,

- Matt


author: Mike Corsaro
body: Sounds like the git config is corrupt. Open this file:

```
C:\Users\{USERNAME}\.gitconfig
```

And look at the values under "difftool". Double check to see if there's anything odd, or if there's a missing ' or "


author: matt_h
body: Bingo! Sure enough, the difftool entry in the .gitconfig file had gotten corrupted somehow:

```
[difftool "sourcetree"]
 cmd = 'C:/Program Files/SourceGear/Common/DiffMerge/sgdm.exe' \"$LOCAL\" \"$REMOTE\"
 cmd = 'C:/Program
 cmd = 'C:/Program
 cmd = 'C:/Program
 cmd = '/C:/Program
```

Removing all but the first entry there fixed the problem. Thank you! It's so nice to have my external diffs back.
I have added a new member in my team and she couldn't able to clone the repository
Asked by logesh vijayan:

I have added a new member to my team, we have admin access to the member but she couldn't able to clone the repository


Answers:
author: bgannin
body: What error are you seeing?

comments: author: logesh vijayan
body: HI Brian,

I have given access to her she can clone the repository but she can't commit and push the code changes we have given read and write access to her


author: logesh vijayan
body: kaviya.prarthana@ambas.ca is the bitbucket account which has issues
Add GitBlit ticket within Sourcetree
Asked by ceburo:

Hi all.

We are using a GitBlit server to store our repos. We want to use the 'Ticket' functionnality directly within Sourcetree UI.

How can we acheive that ?

Thanks


Answers:
author: bgannin
body: Sourcetree does not have support for pull requests currently. In addition, it seems like GitBlit might require special handling to make work compared to "normal" pull requests. There are no UI plugin APIs available for Sourcetree. You could use Custom Actions to run commands or scripts to ease the workflow a bit though. HTH.
Sourcetree keeps asking for login and password...
Asked by Megi Alianda:

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


Answers:
author: Ana Retamal
body: Hi Megi, I think you might have sent the wrong screenshot. Can you describe a bit more what you're doing when that happens and what credentials is it asking for, so we can help you?

Kind regards!

Ana
Unable to checkout code due to multiple GitHub login prompts.
Asked by Vignesh Balasubramanian:

This is happening only with Sourcetree. With any other mode like Tortoise Git or Console it works fine. Please help me fix this.


Answers:
author: Ana Retamal
body: Hi Vignesh, the solution for that was shared in this thread: <https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-setup-Sourcetree-to-access-Github-now-that-they/qaq-p/735377>

Basically, just update your version of Git so that the credential manager supports Github's recent security changes and you should be good.

Let us know if it helps!

Ana

comments: author: Vignesh Balasubramanian
body: that worked Ana. Thanks. :)


author: Ana Retamal
body: Glad to hear that! Have a nice day :)

Ana