youngmon/atlassian-qna huggingface dataset:
Cannot clone a Git Repo using SourceTree and Azure DevOps
Asked by Ibrar Mumtaz:

I am using the latest version of SourceTree and Git for Windows.

I can successfully add my Azure DevOps account to SourceTree using a personal access token and navigate all of the repos hosted remotely. When pick one to clone ... i run into the same issue time and time ago. Even if I clone it directly without using a VSTS account:

**++ERROR:++**

Command: perl.exe C:\\Users\\{me}\\AppData\\Local\\SourceTree\\app-3.0.8\\tools\\svn.pl info <https://work.visualstudio.com/work%20work/_git/PureApi>  
Output:  
Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote <https://work.visualstudio.com/work%work/_git/PureApi>  
Output:  
Error: fatal: ArgumentException encountered.  
**An item with the same key has already been added.**   
fatal: ArgumentException encountered.  
**An item with the same key has already been added.**   
fatal: Authentication failed for '<https://work.visualstudio.com/wprk%20work/_git/PureApi/>'

***Other***

I can clone a repo as normal using GitBash but then when I add the local repo to SourceTree it run into the same issues when I try do a fetch.


Answers:
author: Ibrar Mumtaz
body: Reverted back to Git for Windows version 2.17.1.2 and this did the trick.

<br />

The issues lies with the Git Credentials Manager.

comments: author: bssindiana
body: For my case also I am getting the similar error:

My Azure Repo account has been added successfully in Sourcetree using PAT.

Still below message is displayed when trying to clone.

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://ABCDaaS@dev.azure.com/ABCDaaS/CompOne/_git/PXXXX-AutomationFramework  
Output:  
Error: fatal: unable to access '<https://dev.azure.com/ABCDaaS/CompOne/_git/PXXXX-AutomationFramework/>': Failed to connect to dev.azure.com port 443: Timed out


Tags: authentication

git
repo , local side having problem pushing to server side
Asked by Yang _ Cheng - Kuang:

Hi , I'm having problem with pushing my commits to server

here's the message

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin DevelopmentBranch:DevelopmentBranch  
POST git-receive-pack (18954 bytes)  
remote: Repository is in read only mode (over 2 GB size limit).

I've tried to search out the solution but they say that the best way to solve this is to ask for support , and I tried to call git gc locally but no luck on this command

Please help me out!


Answers:
author: Ana Retamal
body: Hi, welcome to the Atlassian Community!

I can see from the message you included that you reached 2GB in your repository, that's a hard limited established by Bitbucket Cloud and it's documented at [What kind of limits do you have?](https://confluence.atlassian.com/bitbucket/what-kind-of-limits-do-you-have-on-repository-file-size-273877699.html). To fix that, you'll need to reduce the size of your local repo to under 2GB and then force push it to Bitbucket Cloud, you can find the steps at [Reduce repository size](https://confluence.atlassian.com/bitbucket/reduce-repository-size-321848262.html).

Let us know if you need any further assistance!

Kind regards,

Ana

comments: author: Yang _ Cheng - Kuang
body: Hi Ana , last time I asked this question , I did nothing but after an hour I can push successfully . But this time I've encountered the same situation again and I tried to follow the link you've gave me , but still not working , I've tried

    git reset --hard HEAD~4

, the force push worked on that current commit, but pushing the local commits after that didn't work out , can you help me run a `git gc` on the server for me please?

Steven


author: Yang _ Cheng - Kuang
body: FIXED after removing "Tags" on repo...
window is not coming front when i select Source tree menu
Asked by Surekha Athota:

window is not coming front when i select Source tree menu


Answers:
author: Ana Retamal
body: Hi Surekha!

I'm afraid I don't understand what the issue is? Can you clarify the description a bit more? Could you add a screenshot? Also, please don't forget to add information such as OS you're using (Windows or Mac) and Sourcetree version.

Cheers,

Ana
What can be done to improve performance of SourceTree for Mac 3.0?
Asked by Tim Ahrens:

Running MacBook Pro with 2.2 GHz Intel Core i7, 16 GB Ram and just about any action produces the Apple in-progress spinner for painfully long periods of time. At times the app is unusable!! 1. Are they working on this? 2. Are there settings that can be tweaked to improve wait times? I love the features, but it is so slow


Answers:
author: bgannin
body: Hi Tim,

The short answer is yes, we're working on it. In the meantime you can reduce the diff context to cut rendering time or exclude particularly problematic file patterns like lock files.

What's being done?

* there's an initial set of refactorings in 3.0.1 which resulted in up to a 25% increase in launch/repo open times; this will ship in the next week or so
* a much deeper refactoring, due to the age of Sourcetree's codebase, is necessary to improve other aspects of the log view; that is slated for our next major update
* analysis for performance, architecture, and feature improvements in the diff view are underway; that is also slated for our next major update

It's definitely not being ignored. Patience and constructive feedback for the team are much appreciated. Threads such as this have a tendency to devolve; let's all keep it civil. There are humans on the other side of the screen *(hi!)* reading your comments who are also writing the software - put yourself in our shoes before hitting Answer in anger please.

Brian Ganninger  
Senior Mac Developer, Sourcetree


author: Tim Ahrens
body: I can't count how many times SourceTree has locked up on me this week. My suggestion is that you make this priority one, and not add another feature until this is solved, because SourceTree has locked up on me so many times this week, that I cannot get anything done. I am pretty much forced to figure out how to do stuff with another app or use command line.

comments: author: Tim Ahrens
body: BTW, I was told that I should try your beta product, and it was not noticeably better.


Tags: mac

performance
Sourcetree window does not show after minimize
Asked by kxk4xyh:

I am running Sourcetree 3.0.8 on Windows 8.1. After minimizing the Sourcetree window, I need to click the application in the taskbar many times (3 to over 10 times) before it re-appears. Using alt+tab never shows the window.

I also had this issue in Sourcetree 3.0.6. Other applications do not have this issue.

Is this a known issue? Is there anyone else who has the same issue?


Answers:
author: kxk4xyh
body: Found a workaround:

<https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-v3-0-6-minimize-and-maximize-problem/qaq-p/912942>
Git-flow not 100% compatible from 2.7.1 and above
Asked by Nahue:

This is not a duplicate from [this one here](https://community.atlassian.com/t5/forums/postpage.searchbeforepostfield:searchbeforepostitemselected/message-uid/728759/node-display-id/community%3Atnckb94959?t:ac=choose-node/true/interaction-style/qanda/q-p/YWRkLXRhZ3M6c291cmNldHJlZQ..&t:cp=search/contributions/messagesearchcontributionspage)

I've done the \`getopt\` thing and git flow started working but 100% as before.

In my case, I usually review my team work by checking the \`features\` from one dev or another. So I have git-flow initialised like this:

```
feature = feature/
release = release/
hotfix = hotfix/
support = support/
versiontag =
```

So, when checking another dev jobs I go to \`feature/ic/CODE-000\` and do the usual flow actions like finishing the feature or the hotfix.

From 2.7.1 and above (I tried with v3 as well) having that config results in git flow not recognizing branches like \`feature/\*/CODE-000\` as a feature, so when performing flow the next action always gives me the primary options, like "Start a new feature" and not "Finish feature".

If I config the features to be like \`feature/ic/\` then git flow recognizes them as they should. The problem is that I need to be able to go through \`feature/ic\` or \`feature/ns\` or \`feature/jf\` without the need of changing the config every time.

Hope someone can help me.


Answers:
author: bgannin
body: Hi Nahue,

For the moment I'd recommend installing the old implementation of [git-flow](https://github.com/nvie/gitflow) and choosing "Use System git-flow" in the Git preferences to get back to working order. We are investigating issues with the [AVH upgrade](https://github.com/petervanderdoes/gitflow-avh) and what option is best but there's not an ETA for any changes at the moment.

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: mac

git

git-flow
SourceTree WIN 3.0.8 forgets external diff tool selection on restart
Asked by David R. Cattley:

It seems every time I restart SourceTree it now forgets the path to P4Merge selected as the External Diff Tool.

Oddly it remembers the path to P4Merge as the External Merge Tool.

So specifically, the drop-down selection continues to show P4Merge selected as the Diff Tool but the Diff Command is blank on startup. Selecting another (or none) External Diff Tool then re-selecting P4Merge corrects the value in Diff Command and after hitting OK to close the settings dialog the tool works as expected.

Close and re-open SourceTree and the settings are once again whacked.

This seems to have started happening about 3.0.6 but continues with 3.0.8 (not sure about the onset version). But none the less, this was all fine until some upgrade somewhere along the way and not it is PITA to go and re-select the DIFF Tool every time I start SourceTree so that it will do a diff as I expect.


Answers:
author: minnsey
body: Hi  

Yes this is a bug I'm afraid we a have a fix currently going through testing

comments: author: Jamie Brost
body: What version of SourceTree Enterprise will include this fix?


author: cowlinator
body: [@Michael Minnis](/t5/user/viewprofilepage/user-id/417585) , no really, What version of SourceTree Enterprise will include this fix?


author: minnsey
body: It should be fixed in 3.1.2.


author: David R. Cattley
body: This appears to have been fixed in 3.0.15. Thanks.

comments: author: David Kossatz
body: Lucky you. Just installed 3.0.15, set merge/diff tool as P4Merge, open/closed the application and it's no longer set. I have to open options and hit Ok for it to re-set the setting.

Was there an existing JIRA I can follow or re-open?


author: David R. Cattley
body: I don't have a STRCTREE-\* JIRA ticket to reference.

\>Lucky you

I guess so. \<sigh\>

I have come to expect three things broken for every two fixed from release to release of ST ...


author: David Kossatz
body: Agreed. In my case, at least the Window maximizing issue was fixed.

I found <https://jira.atlassian.com/browse/SRCTREEWIN-10903> and Michael commented that it should be fixed in 3.0.18 so I'll wait for that release to see.


author: cowlinator
body: Bug exists in 3.0.17.2659 .

Workaround is to manually set up the diff command in "options-\>diff-\>external diff" as a "Custom" command (use copy-paste), then SourceTree wont forget it.


author: cowlinator
body: Well, at some point the "custom" command stopped actually opening p4merge for me. Still using 3.0.17.2659 so I'm not sure what happened.
Git-flow not 100% compatible from 2.7.1 and above
Asked by Nahue:

This is not a duplicate from [https://community.atlassian.com/t5/forums/postpage.searchbeforepostfield:searchbeforepostitemselected/message-uid/728759/node-display-id/community%3Atnckb94959?t:ac=choose-node/true/interaction-style/qanda/q-p/YWRkLXRhZ3M6c291cmNldHJlZQ..\&t:cp=search/contributions/messagesearchcontributionspage](https://community.atlassian.com/t5/forums/postpage.searchbeforepostfield:searchbeforepostitemselected/message-uid/728759/node-display-id/community%3Atnckb94959?t:ac=choose-node/true/interaction-style/qanda/q-p/YWRkLXRhZ3M6c291cmNldHJlZQ..&t:cp=search/contributions/messagesearchcontributionspage)

I've done the \`getopt\` thing and git flow started working but 100% as before.

In my case, I usually review my team work by checking the \`features\` from one dev or another. So I have git-flow initialised like this:

```
feature = feature/
release = release/
hotfix = hotfix/
support = support/
versiontag =
```

So, when checking another dev jobs I go to \`feature/ic/CODE-000\` and do the usual flow actions like finishing the feature or the hotfix.

From 2.7.1 and above (I tried with v3 as well) having that config results in git flow not recognizing branches like \`feature/\*/CODE-000\` as a feature, so when performing flow the next action always gives me the primary options, like "Start a new feature" and not "Finish feature".

If I config the features to be like \`feature/ic/\` then git flow recognizes them as they should. The problem is that I need to be able to go through \`feature/ic\` or \`feature/ns\` or \`feature/jf\` without the need of changing the config every time.

Hope someone can help me.


Answers:
author: Manju
body: We are aware of some issues with respect to gitflow since we upgraded to gitflow avh and actively working to get to the root of it and resolve them. We request you to submit a ticket on jira.atlassian.com for us to get to know all related issues and fix them for you. Thanks for your patience and we really appreciate the understanding in the meanwhile.


Tags: git-flow

mac
Cannot install Sourcetree
Asked by Bartosz Malinowski:

I'm trying to install Sourcetree windows app and I am stuck on the Install step. Steps to reproduce. After starting the app I have two options "Bitbucket" and "Bitbucket Server" presented. I select the first one and I'm redirected to the browser where I can login to my Bitbucket account, I can then grant access to several features and after that I am being redirected to the https://localhost:34106 with an error. From this point Sourcetree app waits forever with the "Waiting for login to finish" status?


Answers:
author: minnsey
body: Hi  

What is the error at https://localhost:34106 ?  

It **is** correct that you are being redirected to there, Sourcetree uses that callback to collect the refresh and access OAuth tokens.

comments: author: vefremov
body: Very smart answer. What is the solution to this???


Tags: install

windows
Can't link second Bitbucket Account
Asked by Caleb Pike:

I'm trying to link both my work and personal Bitbucket accounts on Sourcetree but I can't seem to get the second account to link up.

I go through the steps as usual, and per the instructions on Sourcetree's website. I get to the point of signing in with success to Bitbucket, on Sourcetree. Once I'm logged in, the login window in Sourcetree displays the Bitbucket website. So I login with success but the only option the window allows is "Cancel". So I can't exit a successful login while keeping my account linked.

Help!!!! Thank you!


Answers:
author: bgannin
body: Hi Caleb,

To add a second account you'll need to log out of the current Bitbucket account in your browser, then use the add flow from Sourcetree. Since it's going through your default browser it picks up whatever existing Bitbucket Cloud session you've got, it doesn't use a separate sign-in flow.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Caleb Pike
body: I've signed out of either account in my browser and I get the same result in Sourcetree. I can sign in to my second account in Sourcetree but I can't stay logged in to use the account in Sourcetree. Below is the screen that pops up.

![Screen Shot 2018-11-03 at 7.48.34 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/36699i9BF61CCA6F9D36D4/image-dimensions/577x597?v=v2 "Screen Shot 2018-11-03 at 7.48.34 AM.png")


author: Ana Retamal
body: Hi Caleb, welcome to the Community!

Are you on Windows or Mac? If you're on Windows, can you make sure Internet Explorer is updated to the latest version?

If you're still having issues, can you send a screenshot of what happens when you try to link your account?

Kind regards,

Ana

comments: author: Caleb Pike
body: I'm on a Mac which is currently at home so I can-not provide screenshots until this evening. To clarify, I click the gear in the top right in Sourcetree. I then click on "Accounts"\>"Add"\>Input my credentials using Google to sign in\>Then the window displays the bitbucket website showing my repos. I can navigate the website but the only option I have is to "Cancel" at the bottom of the window. So Sourcetree never saves my info allowing me to access both accounts.

I have both accounts linked and working on my work computer, which is also a Mac.

Thank you.


author: Caleb Pike
body: Below is the screen I'm seeing after inputting my credentials for bitbucket into Sourcetree, on my SECOND account. So I have one functioning account linked but the second is a no go.

![Screen Shot 2018-11-03 at 7.48.34 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/36701i6606AAF6E2F43749/image-size/large?v=v2&px=999 "Screen Shot 2018-11-03 at 7.48.34 AM.png")
access denied
Asked by ammannc1:

Hi dear supporters

I'm sorry. I'm not the coder or the it specialist so I may you a simple question but I would be happy you could help me I just passed hour in front of my PC without any solution.

I'm using WIN 10 I have bought a new computer and I like to use sourctree to maintain my homepage. On the old system everything was perfect on the new PC nothing is working as it should and I dont know why. I tried all my possibilities without solving the problem so I ask you kindly to help my and not to send my to communities.

Problem: I have installed putty and generated the private keys in the right way in the folder .ssh. I have installed the newest verson of sourcetree and would like to clone my files. I doesn't matter what I try I have no access to my files.

perhaps might be helpful for you I try to log on home/ammannc1/git/chi.git

no chance.

Please help me. Thanks


Answers:
author: Ana Retamal
body: Hi Christian, welcome to the Community!

Do you have your files only locally, or have you hosted them somewhere else (Bitbucket, Github, etc?

If you have them locally, you need to add those files to Sourcetree following the steps at [Add an existing local repository](https://confluence.atlassian.com/get-started-with-sourcetree/add-an-existing-local-repository-847359105.html).

If you have any other questions, you can also check our Sourcetree documentation at [Get started with Sourcetree](https://confluence.atlassian.com/get-started-with-sourcetree). Otherwise, you can ask us and we'll be happy to help :)

Best regards,

Ana

comments: author: ammannc1
body: My files are not local. The thing is I cannot reach my files. Acces denied.

I tried your solution for my problem , thanks, but it didn't solve my problem.


author: Ana Retamal
body: Hi Christian, if your files are not local that's not a problem, you just need to follow different instructions :) You haven't told us where are they hosted so it's going to be difficult for us to guess where they are, but I'll send you the instructions for the most popular options, you can find them at [Connect your account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html).

Does that help you? If not, can you tell us where are your files hosted?

Cheers,

Ana


Tags: windows
certificate of compliance
Asked by Sagee Lupin:

We are using SourceTree in our company.

As part of our ISO compliance we are requested to evalualte the software we are working with.

<br />

We would kindly ask you, if you have a certificate of compliance Also called **certificate** of conformance, certificateof conformity or any other statment document that the software development is provisiopned (version control, unit tests, acceptance tests etc) .

We appreciate your assistance,  
Kind Reagrds,Sagee


Answers:
author: minnsey
body: Hi,  

I'm afraid we don't have such a certificate. Can we provide any other information?


Tags: compliance
Can SourceTree use ssh keys in a non-standard location
Asked by karres:

Hi,

My work Win10 machine has a "mapped" Home drive, call it "H:". Due to some recent issues I had to delete my local "profile". Before I did the delete I copied the ".ssh" dir and other things off to the H drive for safe keeping. I now wonder if I can configure Sourcetree to look in that non-standard location for the ssh keys?


Answers:
author: karres
body: This isn't an answer but I had to do something... I moved the .ssh dir back from the mapped H drive mentioned above to my local "profile". I had to reestablish the remote info via:

git remote rename origin old-origin  
git remote add origin git@gitlab.myCo.com:me/myProject.git  
git push -u origin --all  
git push -u origin --tags


author: Ana Retamal
body: Hi! Have you already tried the option 'Load an existing private key file' as shown in [our documentation](https://confluence.atlassian.com/sourcetreekb/generate-and-load-ssh-keys-into-sourcetree-with-putty-790629663.html)? Are you able to select your SSH key location?

Let us know!  
Ana

comments: author: karres
body: Thanks, I have active ssh keys, this page seems to only tell me how to generate new ones.

My keys are not sitting is the "default" location that putty creates (C:\\Users\\me\\.ssh). Instead, they are on a mapped drive (H:\\.ssh). My guess is that Sourcetree only know to look in the .ssh directory in the user's home directory.

I have tried going to Tools -\> Options and setting the "SSH Client Configuration" section but that has not worked.

I may have to move the .ssh dir back to the "normal" location

\*\*Edit\*\*

I have tried creating a windows "junction" to link to the mapped drive location. That is not working.


Tags: ssh

windows
Sourcetree Windows Download is a Zip file
Asked by Brent Heavican:

When I click on the download button to download the Windows client the resulting file is a zip file not an executable. Unzipping that file does not result in anything meaningful. Is the link broken?


Answers:
author: Mikael Sandberg
body: Hi Brent,

Welcome to the Atlassian Community!

Yes, it looks like the Windows download link is broken, it downloads the Mac OS version. I successfully downloaded the Windows version by using this link, <https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.0.8.exe>

comments: author: Brent Heavican
body: Thanks. Also looks like the Mac download gives you the Windows install.


author: Bill OLeary
body: thanks! I was going nuts... the Install documentation was really confusing too since it said from the zip file you download, open the .exe file....


author: Max
body: Is it possible that this is still an issue with version 3.2.1?
I still can NOT install SourceTree on Windows 10
Asked by karres:

Hi,

I am on Win10. I \*just\* downloaded the latest Sourcetree zip"Sourcetree_3.0_200.zip". I try to search the zip for a .exe but see nothing. There are files and folders but nothing to install. I tried downloading the previous version from the archive and that has the same problem: no exe

How should we install now-a-days?


Answers:
author: Mikael Sandberg
body: Welcome to the Atlassian Community.

You can download the latest version of Sourcetree from here, <https://www.sourcetreeapp.com/>.

comments: author: Mikael Sandberg
body: It looks like the Windows download link is broken because it downloads the Mac OS version instead. Use this link to download the Windows version, <https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.0.8.exe>


author: Scott Theus
body: Btw...there is a bug recorded for this, you can watch it at [SRCTREEWIN-10792](https://jira.atlassian.com/browse/SRCTREEWIN-10792)

-Scott


author: karres
body: Ah! thanks!