youngmon/atlassian-qna huggingface dataset:
SourceTree Prompts to enter git hub username and password again and again..
Asked by Nandha Kumar Rajendran:

I recently tried pulling my GitHub repo with SourceTree and it kept failing. I was prompted to log into GitHub, so I filled in my username and password, but it still failed. I tried creating an SSH key and using that, still nothing. I googled whether my 2FA could've had something to do with it - got some guide on creating Personal Access Tokens, followed that, still nothing. I updated SourceTree to the newest version, repeated the steps, nothing. Checked the Options-\>Authentication, sure enough my GitHub account is there, but still nothing. Used the local Git, the embedded Git, still nothing. So at this point I'm running out of ideas to try out as multiple GitHub Login windows are popping up on my computer...

So, how do I connect SourceTree to GitHub, where I have 2FA enabled?


Answers:
author: Manju
body: Is this on Windows or macOS? What version of the app are you using?

comments: author: Nandha Kumar Rajendran
body: I'm on Windows 10 and Sourcetree version that I've is 2.5.5.0.

Thanks,

Nandha


author: minnsey
body: Hi can you check your Git version?  

It sounds like an error caused by GitHub removing some TLS protocols a few weeks ago, see <https://githubengineering.com/crypto-removal-notice/>  

If you haven't already can you try upgrading your git version?  

Thanks
SourceTree License
Asked by Jamil.Isayyed:

Hello,

I am wondering how we can add sourcetree to many development environments using one possible license for the company not based on user account?

i raised a support issue before and got the following answer but it didn't really help.

Hello Jamil,

As of May 9, 2017, SourceTree customers exclusively receive support from our online [Atlassian Community](https://community.atlassian.com/?from-gsac=true). There, we have dedicated Atlassian Support staff in addition to Community Champions ready to answer your questions.

In addition: Find your answer instantly by searching a database of hundreds of previously asked questions and answers. Get superior support via the product support forums, where you can ask a question and get one or more answers by experts, whether that be an Atlassian staff member, an Atlassian partner or a community champion.

Hence you may register for SourceTree once with a corporate email address and use the same license everywhere. To get that license on a new machine you can either register each one by typing the user/password in the online registration (this will retrieve your license automatically), or you can obtain the license file and copy it between machines.

* <http://www.sourcetreeapp.com/register/>

When you start SourceTree for the first time you'll be asked to accept the EULA, which you can read for details. SourceTree is not open source but it is free (of charge).

I hope this helps and let me know if you have questions.

Please advise

Thanks,

Jamil


Answers:
author: Ana Retamal
body: Hi Jamil! My colleague was redirecting you to the correct channel to get support for Sourcetree so, in a sense, it helped :)

I'm afraid what you're asking for is not possible, even if you use the MSI installer, each user will need to register Sourcetree when it first launches, using one of the following options:

* your company's Bitbucket Server instance*(through user's default browser)*
* their Atlassian account *(requires Internet Explorer 11 or higher)*

For more information, you can read [Sourcetree Enterprise and MSI installation](https://confluence.atlassian.com/sourcetreekb/sourcetree-enterprise-and-msi-installation-947848769.html)

Let us know if you have any questions and we'll be happy to help!

Kind regards,

Ana


author: Kevin Koltz
body: The link <http://www.sourcetreeapp.com/register/> no longer works
File Status view is stuck on a conflicted merge
Asked by Dan Goes:

I performed a merge on a branch that's now fully deleted both on my local machine and remotely, but it seems to have stuck my File Status view in a state where I can't see any of my files anymore. Instead, it's just showing a text box with the text of a conflicted merge:

![2018-05-23_11-46-29.png](/t5/image/serverpage/image-id/22780i3F038DEC22DCB6B2/image-size/large?v=v2&px=999 "2018-05-23_11-46-29.png")

It stays this way after I restart SourceTree, and there's no button to clear/commit/reset/resolve conflicts/etc. The fact that it's persistent through a restart of Sourcetree makes me think that this is intended behavior, but it's not clear to me how to get out of it. Is there some way to get away from this view and back to the regular File Status view with multiple panes and views of files that have changed/are staged/etc.?


Answers:
author: Dan Goes
body: OK, I figured it out. That was the commit message box, apparently, and its contents (persistent between restarts) caused it to grow to be the size of the entire pane that it was living in, pushing everything else out. I think that's a bug.

To fix, I just selected everything in that text box and deleted it.

comments: author: jaza_tom
body: THANK YOU.

This is one of the first times a suggested similar post that I clicked on actually solved my answer.

GO COMMUNITY!


author: Dan Goes
body: This \^\^ will keep me going on submitting issues and solutions publicly on all kinds of things for the next year or so :)
Why do I get an error message when entering the correct login information?
Asked by CocceD@valassis.com:

I've used multiple browsers, and I get the same error message when attempting to login with the correct credentials. I have used Chrome, and it either provides the same error message, or I am able to access my account, but the pages will not fully load, so I cannot access all the links needed.


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

We need more information to find out what's going wrong. You've posted this question under the Sourcetree product, but I'm not sure if this is what you're using, can you confirm this?

If you're using Sourcetree:

1. Which OS and Sourcetree version are you using? (If you're on Windows, make sure IE is updated to the latest version as Sourcetree relies on it for the authentication. )
2. What error message are you getting?
3. Can you send a screenshot?

If you're not using Sourcetree:

1. To which product are you trying to authenticate? Which version?
2. What error message are you getting?
3. Can you send us a screenshot of the pages not loading?

Let us know!

Ana
Cloning repo redirects to another one
Asked by Daniel G:

Hi Atlassian community,

I'm working with one github repo currently, and I need to add another that I will be working with, but when I want to clone a new repo from remote (github), it's telling me:

"warning: redirecting to \<current repo\>"

So it just downloads the old repo instead...

I reinstalled git and sourcetree on my machine (windows), but problem persists.

I tried cloning from commandline, but I get the same result.

Havn't found anything on google about such an issue, so I'm quite clueless of where to even look. I'd be very grateful for any help.


Answers:
author: Daniel G
body: I have found the solution to my problem, apparently Git somehow created a config file in C:\\AppData\\Git which had the url to my previous repository, I'm still not sure how this file was created but seems that sourcetree used it by default instead of its own config. So I just removed that config file and cloned another repository without problem.


author: Yogesh Mude
body: Hi [@Daniel G](/t5/user/viewprofilepage/user-id/1419913),

Why can't you create one new empty repo and then try to clone and see if still, this error persist?

comments: author: Daniel G
body: Hi [@Yogesh Mude](/t5/user/viewprofilepage/user-id/1169678),

Thank you for replying, it's not something in git, it is something in my local machine because a co-employee can clone another repo without problem. The question is why it writes me that it redirects to another repo, is there some config file that can state such a thing in sourcetree or git?


author: Yogesh Mude
body: Hi [@Daniel G](/t5/user/viewprofilepage/user-id/1419913),

Ok, see the first time when you clone the repo to your working dir/local machine then it will create .git file or we can say it will initialize with that repo.

Try to create a new directory into the local machine then cole the repo and see.


author: Daniel G
body: I create a new directory for the new repo, it just redirects to the old repo and downloads the contents of that repo to this directory. Any ideas?
Sourcetree for Windows for silent install
Asked by Syeda Rahman:

Is there a version of Sourcetree for Windows that is compatible with systems management software, supports silent installs, and allows the administrator to choose the installation folder?


Answers:
author: Thomas Schlegel
body: Hi [@Syeda Rahman](/t5/user/viewprofilepage/user-id/1408416),

look here:

<https://confluence.atlassian.com/sourcetreekb/sourcetree-enterprise-and-msi-installation-947848769.html>
Looking for more details on login error
Asked by svinchon:

Hello,

I have installed SourceTree in a Windows 2012 VM but I can"t log in using my usual credentials that work perfectly on other machines

The error message says "Something went wrong while attempting to validate your credentials."

Is the a way to get more information on what is going wrong?

Regards,

S?bastien VINCHONsvinchon@gmail.com


Answers:
author: minnsey
body: Hi  

I'm guessing you get this error during registration? If so this relies on Internet Explorer to render the pages. Try using Internet Explorer directly to login at <https://id.atlassian.com> if that works then the registration step should work.  

If not please try adjusting your IE settings as follows:  

1. open Internet Explorer
2. open the Developer tools, f12
   1. set the Browser Mode 10
   2. set the Document Mode Standards
3. open Cog/Internet options
   1. ensure the following settings are enabled
   2. Misc/Access data sources across domains
   3. Misc/Allow META_REFRESH
   4. Scripting/Active Scripting


Tags: windows
Failed to list groupings for user
Asked by Evangelos Kaloudiotis:

I cannot login to the sourcetree startup screen and there is no interface I can go to settings or other. I insert the https://\<username\>@bitbucket/scm/\<project\>/\<branch\>.git url,

my username underneath and press Login. Entering my password created the "Failed to list groupings for user" message and doesn't allow me to go on


Answers:
author: Mike Corsaro
body: Hello! I assume you're trying to connect to Bitbucket Server? Could you post a screenshot of the window you're inserting the info into? This will help me figure out what the issue is.

Thanks!

comments: author: eshabatish
body: Hi Mike,

Here is the screen shot. Yes I am trying to login in Bit bucket. The error I am getting is 'Failed to list groupings for user'.

Thanks !

![Issue.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/23402i5B4DB4172729764B/image-size/large?v=v2&px=999 "Issue.jpg")


author: Mike Corsaro
body: Ah, okay! For the "root url" you only need the base URL.... so if your repo URL is:

```
https://mike@stash.atlassian.com/scm/sourcetree/master.git
```

then the root URL should be:

```
https://stash.atlassian.com
```

You only need to put in the base address of where your Bitbucket Server instance is, not the whole repo URL.


author: eshabatish
body: Hi Mike,

I tried the way you mentioned but it didn't work for me. I tried using <https://gitserver.mycompanyname.com> but no luck.


author: Mike Corsaro
body: Odd. Not sure what else the issue could be -- the URL you use to access your repos should work just fine as the root URL for Bitbucket Server. As a workaround, you can also just sign-in using an Atlassian account on the previous screen.


author: eshabatish
body: yeah I'll try other options. Thanks for the help, Mike.


author: Manju
body: Can you please specify if this is on the Windows app or macOS one?

Are you trying to add an account or clone a repository?

comments: author: eshabatish
body: Hi Manjunath,

This is the exact issue I am facing. I am using Windows 7. and want to clone a repository.

Thanks.

Esha.


Tags: error

login
Windows 8.1 & SourceTreeSetup-2.5.5.exe something went wrong
Asked by Zoekoff:

I am trying to install the latest version of sourcetree,

SourceTree itself gives the error "Something went wrong while attempting to validate your credentials."

The log files under \[AppData\\Local\\Atlassian\\SourceTree\] are empty 0kb.

I am able to login with internet explorer without a problem and without having to alter any settings for IE 11 itself. In fact I am using it to write this now.

any suggestions as to what I can look at next?


Answers:
author: Zoekoff
body: I did notice when I login on IE 11 the address looks like this.

<https://id.atlassian.com/login?continue=>**http:**//id.atlassian.com/manage/account-settings

My firewall only lets sourcetree go thorugh port 443 if it is using port 80 for anything I will need to add that.

update: changed that too, did not fix the issue
Can't push when +10Mo size
Asked by Corentin Ambroise:

hi, i have a problem when i try to push files olike video that have a size +10 mo  

here is the error :   
i'm on sourcetree  

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master  
POST git-receive-pack (chunked)  
fatal: The remote end hung up unexpectedly  
fatal: The remote end hung up unexpectedly  
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054  
Pushing to https://ambroisecorentin@bitbucket.org/frostyfroggs/c.h.a.s.e.d..git  
Everything up-to-date

Termin? avec des erreurs, voir ci-dessus


Answers:
author: Manju
body: Can you please specify what OS and Sourcetree version you are using?


Tags: bitbucket
Sourcetree diff not working; displaying wrong add/substract and wrong linenumbers
Asked by Andre_Mandler:

I overwrote a .tex file with another version of it. The version on disk is now exactly as i want it. Sourcetree is showing the file as altered, but not all alterations are shown, and some nonexistent alterations are shown. Additionally the line-numbering is off.  

See attached Screenshot: (yellow highlighted regions)

I opened the file in Notepad++ to show the real content, and you can see in the background the Sourcetree diff, with wrong line numbering (observe that the real /begin-\>/end block is four lines from 40 to 43 and the Sourcetree diff is a weird /begin-\>/end/end block) and, very importantly: A line that does not exist anymore (Sourcetree line 36) is not marked as missing!  

I tried commiting, the commit works with the real file, and also reverts fine, but the shown diff is always wrong. Altering stuff in N++ and saving resulted in a still wrong diff, that some times showed a +/- of lines that were unaltered and mostly showed the altered line (i experimented with the Windows 8 line ) as unaltered.

A diff using the diff tool from TortoiseGit was normal and correct.

Just to be clear: I doublechecked that N++ and Sourcetree are seeing the same file, by altering it in N++ and seeing the file change in Sourcetree - so this is not about looking at different files, this is some bug(?) in the ST-Diff (not the actual storing of files, just the showing of the differences)

Anybody know what causes this? It is very disconcerting to not be able to trust the diff.![Sourcetree-Problem.png](/t5/image/serverpage/image-id/22630iE6288D9A2489AB76/image-size/large?v=v2&px=999 "Sourcetree-Problem.png")

Screenshot from Bitbucket, of older version of the file, with "Windows 8" line as part (?) of Line 33 ??

![BitBucket old source of system_requirements.tex.png](https://community.atlassian.com/t5/image/serverpage/image-id/22740i02429FEE01A3BC36/image-size/large?v=v2&px=999 "BitBucket old source of system_requirements.tex.png")


Answers:
author: bgannin
body: Hi Andre,

This is an excellent bug report. Please file these details in our public tracker, <https://jira.atlassian.com/browse/SRCTREEWIN>, and we'll take it from there.

Thanks,

Brian Ganninger  
Product Manager, Sourcetree

comments: author: Andre_Mandler
body: There seems to be an issue with CR as sole newline character, that (seemingly) won't get fixed: <https://confluence.atlassian.com/sourcetreekb/diffs-do-not-render-correctly-due-to-an-old-style-mac-line-endings-265902596.html>
If I Click on Branch should I see a branch in the graph?
Asked by Spencer Bentley:

Hi all, Fairly new to the git experience, but I am a bit confuzed .. if I click branch and create a branch and make changes and commit them and push them then merge them back to the master why does the graph section not show the branches and merges when I have Show All branches selected.. am I missing something very basic?

Cheers


Answers:
author: Spencer Bentley
body: ![screeny1.png](https://community.atlassian.com/t5/image/serverpage/image-id/22830iAFEBD18015D6A2DD/image-size/large?v=v2&px=999 "screeny1.png")

comments: author: minnsey
body: Hi  

If you create one branch from master then makes some commits to your new branch and if master is not moving (no more commits) and you *do not* create a second branch from master then your Git history is linear. You will only see branches in the graph if you have, for want of a better word, parallel commits, e.g. you make 2 branches from master at the same point and then make a commit onto each branch.

Sorry that might not be the greatest explanation., but I hope it makes sense.

Mike


author: Manju
body: Can you please add a screenshot to help us understand your problem better?
Log/History select multiple line, how show?
Asked by yang qibiao:

![a.png](/t5/image/serverpage/image-id/22540iD46565250244F0CE/image-size/large?v=v2&px=999 "a.png")

++**t1.png**++

![t1.png](/t5/image/serverpage/image-id/22539iE8B56FFC8F843E0D/image-size/large?v=v2&px=999 "t1.png")

++**t2.png**++

![t2.png](/t5/image/serverpage/image-id/22538iC777BAED6F92BABA/image-size/large?v=v2&px=999 "t2.png")

++**t3.png**++

![t3.png](/t5/image/serverpage/image-id/22537i44D5717C1CCD73FB/image-size/large?v=v2&px=999 "t3.png")


Answers:
author: minnsey
body: Hi  

If you select 1 line you see the diff for that commit.  

If you select more than 1 line you see the difference between the oldest and the latest selected diffs.  

So in your example in the first image you do not see the content of the 2018-5-25 commit, only the difference between it and the 14486 commit

comments: author: yang qibiao
body: thank.

but, why don't show all the selected?


author: minnsey
body: Sourcetree just reproduces the behaviour of Git


Tags: log
Subtree notifications
Asked by davidbawiec:

I'm using the latest version of Sourcetree (2.7.3) with a repo that I'm hosting on Bitbucket (it's a Wordpress website project). Everything works great. Yesterday I started working with a Subtree (a shared plugin that I use across multiple website projects). I was able to pull and push changes without a problem. What I noticed, however, is there is no indication/notification when new commits are available for pulling for the subtree. Let me explain:

When my main project (repo) has new commits available on the remote, Sourcetree displays a little notification in the sidebar, toolbar, and History, showing how many commits we are behind and that I there are new changes ready to be pulled. (See image)

![Screen Shot 2018-05-20 at 12.39.46 PM.png](/t5/image/serverpage/image-id/22497i5498160032C68D93/image-size/large?v=v2&px=999 "Screen Shot 2018-05-20 at 12.39.46 PM.png")

However, when working in my main repo project with the subtree, when the subtree's remote has new commits available, Sourcetree doesn't tell me that. So I have no way of knowing that there's an update to the subtree plugin. Is there something I'm missing here? A setting that needs to be enabled somewhere?

Is there a better way of working with a shared plugin?

Thanks!


Answers:
author: Manju
body: I'm afraid we don't support that as of today. Can you please submit a feature request on <https://jira.atlassian.com/projects/SRCTREE/issues/SRCTREE> for the product team to triage and consider for an upcoming release?

Thanks,  
Manjunath   
Sourcetree Mac Developer

comments: author: davidbawiec
body: Sure! Glad to help!

Thanks!

David


Tags: app

bitbucket

mac

subtree
Why need to click discard twice in SourceTree?
Asked by Heikki Leivo:

This may be a stoopid question, but I have not been able to figure this out - when I want to discard changes to a file in SourceTree, why do I need to click "discard" twice for the selected file? On first click the content of the file will be discarded, but the file stays in the "unstaged" list until I discard it second time. I find it somewhat annoying.


Answers:
author: minnsey
body: Hi  

If you are using the Windows version then I believe the is a bug we are currently working on. Could you upload screenshots to show the behaviour to confirm it is the same problem?


author: Brody Holden (328)
body: Hello,  

This issue is present in 2.6.6.0  

Thanks for your time.


author: Heikki Leivo
body: Hello Michael,

Please see the screenshots below, showing UI before and after discarding a file. As you see, the file stays in unstaged list, but the diff tells the file has no changes. The file has to be discarded twice to remove it from unstaged list.

Kind regards,

Heikki

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/22612i83C77A0EF1AD1E4A/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/22613iFEE6AF50D151ABD3/image-size/large?v=v2&px=999 "image.png")

comments: author: minnsey
body: Hi  
Thanks, can I check what version you are running?


author: Heikki Leivo
body: Good question. I was pretty sure I was using latest version, but apparently I had 2.4.7.0. I updated to 2.5.5 and verified - UI behavior did not change, files need still to be discarded twice.
Set Up Source Tree
Asked by Walt McAlexander:

I have created new repository and selected as the folder my Unreal Engine project folder. It created a .git folder. But, I see nothing in Source Tree. It is still blank.

My project has already been created ad I want to add Source Tree for version control as I move forward. I am stumped![Screenshot (127).png](/t5/image/serverpage/image-id/22476iA18E4A55A1860285/image-size/large?v=v2&px=999 "Screenshot (127).png")


Answers:
author: Yogesh Mude
body: If your working directory is tracked by Sourcetree/git then simple change any file in the working directory and the changes will be tracked and shown into the source tree and then commit and push the changes.