youngmon/atlassian-qna huggingface dataset:
How to migrate SourceTree and Git to another mac and have everything there???
Asked by Paul Levin:

All we have at this point is a timemachine backup of a macbook pro that had SourceTree working about 6 months ago.

We are trying to restore everything needed to have SourceTree working like it was on that macbook pro. I am still looking for how to get the credentials and settings for our remote git repository. Yep, we do not have the password nor login name for that repository any more. Yet I know that macbook pro had it configured so all I would have to do is run SourceTree. I would not have to login to anything.

Where are all the files I need to get this configured and working?


Answers:
author: Richard Quadling
body: After a horrendous beer spillage, I'm in the process of carefully restoring only the elements I need temporarily to a spare MBP.

From my TimeMachine, I'm VERY VERY carefully pulling files from :

```
/Volumes/TimeMachine/Backups.backupdb/<MachineName>/Latest/Macintosh HD - Data/Users/<UserName>/Library/Application Support/SourceTree
```

And when I say carefully .... only start doing this sort of thing if you fully accept all responsibility for messing things up.  

For example, I thought I'd created the same name on both MBPs. I hadn't. So I'm editing the paths to fit.  

Just be careful. Don't go blindly accepting everything without validating/checking/having a new Time Machine backup in play/etc.


author: Paul Levin
body: Can someone provide an actionable answer to my question?


author: bgannin
body: Hi [@Paul Levin](/t5/user/viewprofilepage/user-id/627933),

Sourcetree for Mac uses a combination of methods to store all the items you asked about.

1. "Repository Settings" are stored in the local copy of the repository, you'd need to restore that and then update to the latest commit

2. Registration for the app is stored for the current user, restoring that should restore the appropriate files

3. Authentication requires a combination of Keychain items and encrypted files in the user's Application Support directory. Restoring both of those should bring back the authentication if all the other items are back in place.

Hope that helps.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Paul Levin
body: Can you please give me specific paths and filenames?


author: Paul Levin
body: SourceTree has the old computer's paths for each local repository. There are about 40 of them. Where can I easily change the root part of the path for the new computer, for all of the repositories?
Sourcetree - Restrict Access to a Git branch
Asked by Elayamathy R K:

Is it possible to restrict access to a Git branch using SourceTree, so that no one from the team is able to commit changes to this particular branch?


Answers:
author: bgannin
body: Hi [@el](/t5/user/viewprofilepage/user-id/2335534),

It's not possible to do so using Sourcetree's UI. You can accomplish this using Git by writing an appropriate [pre-commit hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) that looks at the target branch and rejects the commit if it goes to that particular branch.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Elayamathy R K
body: Thank you Brian. I will try that.
Cannot install SourceTree in Windows
Asked by Jiri Pik:

Have used the 3.0.12 for months, then today it refused to start with crashes being sent to Atlassian.

Have uninstalled, deleted AppData/Local/Atlassian and on install of 3.0.15 it fails again. Am happy to send logs privately.


Answers:
author: Jiri Pik
body: Reboot solved the problem
Sourcetree login - Unable to Log into Sourcetree, but can log into Bitbucket
Asked by rslogar:

When logging into Sourcetree the Bitbucket login prompt appears, but does not accept the current credentials. However, using the same credentials I can log into Bitbucket directly. Tried updating Git versions. Have Sourcetree 3.0.17.


Answers:
author: Manju
body: If you are using basic auth in sourcetree, make sure to use the user id and not the email.
How to solve "fatal: Authentication failed for..."
Asked by guilloag:

Hey, Atlassian:

Did you guys realize the number of times this question have been asked?

The authentication has serious problems, nobody understands why is so complicated to get this working.

Are you going to fix this once and for all?

At least write down a guide on how to authenticate properly, a FAQ, something....


Answers:
author: Mike Corsaro
body: There's many reasons why you might be seeing this issue but just telling us "it's broken!" doesn't help us at all.

Here's some possible reasons why it's not working:

* [You're running an older version of Git that uses a version of the Git-Credential-Manager that has a known bug](https://community.atlassian.com/t5/Sourcetree-discussions/dev-team-Known-Issue-Bitbucket-Login-with-Git-Credential-Manager/m-p/863235)
* You're running an older version of Sourcetree that has this issue

Please read the article I linked that has info about how to update the credential manager. If you're still having issues -- just use a SSH key! [It's easy to setup, and it's more secure.](https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html)
Cannot PULL anymore (rookie)
Asked by Michael Olsson:

Hello. So to be honest I have no idea what this software is used for.

I am a translator that works in QT Linguist and I am using Sourcetree to pull the newest translation file from Sourcetree into QT Linguist. After my translation is done I am using Sourcetree again to stage and push my translation file into the system.

Since some days ago I cannot pull anymore. I see there are 4 files to pull but after choosing Pull this happens :

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin  
Logon failed, use ctrl+c to cancel basic credential prompt.  
fatal: Authentication failed for '<https://companyname.visualstudio.com/VetNet/_git/VetNet/>'  
Logon failed, use ctrl+c to cancel basic credential prompt.  
fatal: Authentication failed for 'https://companyname.visualstudio.com/VetNet/_git/VetNet/'  
Logon failed, use ctrl+c to cancel basic credential prompt.  
fatal: Authentication failed for 'https://companyname.visualstudio.com/VetNet/_git/VetNet/'  
Logon failed, use ctrl+c to cancel basic credential prompt.  
fatal: Authentication failed for 'https://companyname.visualstudio.com/VetNet/_git/VetNet/'  
Logon failed, use ctrl+c to cancel basic credential prompt.  
Completed with errors, see above.

And after those errors there are still 4 files to push, so push was not completed correctly.

As before, the same Microsoft Live windows pops up to enter credentials, but before I just closed the Window without entering anything and Push / pull were working.

Someone told me to open terminal and do git pull. Therefore I push CRLT+C in the terminal and I get a window to enter password.

After I enter the password this happens :

Error: error writing "stdout":broken pipe.

error writing "stdout": broken pipe  
error writing "stdout": broken pipe  
while executing  
"puts $::answer"  
(procedure "finish" line 9)  
invoked from within  
"finish"  
invoked from within  
".b.ok invoke"  
("uplevel" body line 1)  
invoked from within  
"uplevel #0 \[list $w invoke\]"  
(procedure "tk::ButtonUp" line 24)  
invoked from within  
"tk::ButtonUp .b.ok"  
(command bound to event)

Sorry if this is complicated or so, but I have never worked in this program before, I am not a programmer (just simple translator). Any assistance is appreciated.


Answers:
author: minnsey
body: Hi  

I'm guessing you are using Windows not macOS ?  

Can you post the full output in the Terminal, everything including the \>Git pull call?


author: minnsey
body: Hi  

Firstly an I ask are you using Windows or macOS ?
Sub folders of the project do not commit
Asked by pfoliveira:

when cloning a folder after gitflow the sub folders of the project does not allow to commit what to change inside them.

Thanks


Answers:
author: pfoliveira
body: resolvido, bastou ir no ramo/master e clicar mostrar todos e depois comitar o projeto.

Problema n? 15914 desse tickte me ajudou a resolver

Thanks
Is it possible to open a submodule in a new tab instead of a new window?
Asked by Mischael Schill:

SourceTree on Mac opens repositories and submodules in new windows. While it is possible to merge windows into different tabs, it would be really nice if submodules could be opened in a new tab of the same window. Is there an option I missed?


Answers:
author: bgannin
body: Hi [@Mischael Schill](/t5/user/viewprofilepage/user-id/629795),

There is a setting in macOS that enables this type of functionality.

![Screen Shot 2019-02-08 at 10.22.10 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/45054i7C1C3449B2522503/image-dimensions/378x225?v=v2 "Screen Shot 2019-02-08 at 10.22.10 AM.png")

With it set to *Always* then you should get expected behavior across all your applications. There is not a specific override to do this only in Sourcetree currently. You can vote on or file a new ticket via our [public tracker](https://jira.atlassian.com/browse/SRCTREE) for us to prioritize accordingly.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree
SourceTree 3.0.17 for Windows 10 does not show status of BitBucket pipelines build status
Asked by Evaldas Raisutis:

I have cloned a remote repository (over ssh, using bitbucket credentials) and have a bitbucket-pipelines.yml file. Pipeline runs fine in bitbucket, and I can see the status icon in commits tree on bitbucket.

However, I cannot see the build status in SourceTree. I can't find any extra configuration to be done?


Answers:
author: bgannin
body: Hi [@Evaldas Raisutis](/t5/user/viewprofilepage/user-id/1543562),

Sourcetree for Windows does not currently have the Bitbucket Pipelines functionality introduced in the Mac version. You can vote on and watch [this ticket](https://jira.atlassian.com/browse/SRCTREEWIN-11175) for its future inclusion. Thanks for your interest!

Brian Ganninger  
Principal Developer, Sourcetree
Cannot log into my Atlassian account via Sourcetree
Asked by jpgklassen:

I am trying to clone a repository from my Bitbucket account in Sourcetree. Whenever I try to clone the repo, I am prompted to login to my Atlassian account. I've tried many times but login always fails. I've also tried:

* Updating Sourcetree to the latest version (3.0.17)
* Changing my password
* Using both my username and my email
* Restarting Sourcetree
* Restarting my computer
* Resetting my IE settings and restarting my computer
* Adding https://\*.atlassian.com to Trusted Sites in my IE settings

Why can't I login to my Atlassian account with Sourcetree???


Answers:
author: bgannin
body: Hi [@jpgklassen](/t5/user/viewprofilepage/user-id/2160332),

Our apologies for the hassle. Is the app set up already or is it launching and asking you to complete registration? If you've already set up Sourcetree prior to cloning then that account dialog is asking you to log in to Bitbucket I suspect.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: jpgklassen
body: Sourcetree is already set up. Yes, it is asking me to log into Bitbucket. I have tried countless times to log in, with both my email and username. I have even changed my password several times. I can always log into the web interface, but the same password never works in Sourcetree.


Tags: bitbucket
Cannot search my organization's repos when 2FA is configured
Asked by oleg.kozedub:

I have 2FA setup by my organization on GitHub.com. I can see all the projects, but as soon as I type anything in Search (when trying to add repo), red icon appears over my account with ToolTip "Unable to read repositories... Validation failed"


Answers:
author: Dmitri Trofimov
body: I am having the same issue.

ST version 3.3.9

Windows 10

GitHub OAuth.

I can see the list of organization repos and "load more button" works, but search does not work - as soon as I type something existing the list gets and does not recover until I remove all contents from the search-box. The list is empty even if I type in full existing repo name.

On the firs picture there is "blog" repo (the first one).

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

But when I type it in - all blanc. And I have a red mark on my portrait, whatever that means.![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/114574i783AEBBCD8B1256B/image-size/large?v=v2&px=999 "image.png")


author: minnsey
body: Hi  

I can't reproduce this at the moment, I'm assuming you using the OAuth authentication option, rather than Basic Auth?  

Again I'm assuming you get a green confirmation that your credentials are OK in the Tools/Options/Authentication tab when you edit the account?

comments: author: oleg.kozedub
body: I am using basic authentication. I can see all organization's repos. But when I start to type anything in the Search field, I am getting my icon Red icon'ed and list of repos disappears.


author: oleg.kozedub
body: ![111.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/45254i1763591FFBC9339F/image-size/large?v=v2&px=999 "111.jpg")


author: Manju
body: Can you specify if this is on Windows or Mac?

comments: author: oleg.kozedub
body: Windows Server 2016


author: Manju
body: CC: [@minnsey](/t5/user/viewprofilepage/user-id/502201)
can't commit changes
Asked by shaghayegh kazemlou:

I am not able to see the new changes that I made in the local repo, on the sourcetree, can't commit changes


Answers:
author: bgannin
body: Hi [@shaghayegh kazemlou](/t5/user/viewprofilepage/user-id/2689156),

A few questions:

\* What version of Sourcetree are you using?

\* What OS are you on?

\* What happens when you open the repository in Sourcetree?

\* What happens when you manually refresh the repository in Sourcetree?

\* Do the changes show up in *git status*when you check from CLI?

\* What is the remote service you are trying to interact with?

Brian Ganninger  
Principal Developer, Sourcetree
View files in a stash as a list, not the diff (like the Working Copy view)
Asked by Joshua Wallis:

Hopefully the title says it all. I do not want to see the file contents of my stash, I want to see the files in a list. As a bonus, it would be great if it worked like the Working Copy (Workspace - File Status on OSX) view, so you could select a file and see the diff.

I use sourceTree on both OSX and win10, so it would be great if someone had info on both (or if this was possible and it worked the same way on both)


Answers:
author: bgannin
body: Hi [@Joshua Wallis](/t5/user/viewprofilepage/user-id/2687654),

This is not currently possible with Sourcetree on either platform. It's a reasonable feature request - please file an improvement ticket in our public trackers ([Mac](https://jira.atlassian.com/browse/SRCTREE), [Windows](https://jira.atlassian.com/browse/SRCTREEWIN)) so that other users can comment and vote, both of which help us prioritize items when planning future releases.

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Joshua Wallis
body: Thank you Brian. I have created

<https://jira.atlassian.com/browse/SRCTREE-6429>  
<https://jira.atlassian.com/browse/SRCTREEWIN-11355>
How do I create a new repository when given an error?
Asked by Daniel McFadden:

Hello,

I am trying to create a new repo via SSH (my SSH is connected to my GitHub account) but whenever I try to publish to remote repo, I get the following error from SourceTree. I have no idea how this came or when. When I try to add an SSH key, Github tells me that key already exists (and shows it has been used within the last week.

![SS 2019-02-07 at 20.13.30.png](/t5/image/serverpage/image-id/44960iACA941F81FE34DCD/image-size/large?v=v2&px=999 "SS 2019-02-07 at 20.13.30.png")


Answers:
author: bgannin
body: Hi [@Daniel McFadden](/t5/user/viewprofilepage/user-id/2688170),

I don't have an immediate answer but if you [file a ticket](https://jira.atlassian.com/browse/SRCTREE) for us I'll make sure we follow up on it because this definitely isn't the desired experience. Apologies for the hiccup.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Daniel McFadden
body: Hi [@bgannin](/t5/user/viewprofilepage/user-id/744444). Thank you very much for this. Forgot to mention but I this is with a Git repo no Bitbucket. Just now slowly moving them over and rehooking them up to Bitbucket. Would that matter?


author: Daniel McFadden
body: Created a ticket: SRCTREE-6433.

Thank you very much for your attention to this.


author: Daniel McFadden
body: [@Brian Ganninger](/t5/user/viewprofilepage/user-id/744444)

Is there any update on this? I know it might be far out your control, but in the mean time I need to use another product to create and manage my repos. How can I use SourceTree again?


author: Daniel McFadden
body: Ignore


Tags: github

ssh
How do you browse remote repositories
Asked by Ken Richards:

SourceTree 3.0.17 for Windows

How do you browse the remote repository (Repo Browser) in TortoiseGit? This seems like a basic feature, but maybe it requires an external tool.


Answers:
author: minnsey
body: Hi  

If I've understood your question correctly Sourcetree doesn't support that functionality in the same way. If your repository is honest on a remote service for which you have an account setup in Sourcetree, e.g. GitHub, Bitbucket then you can use the **Remote** button in the toolbar to open the web hosted view of the repository.


Tags: windows
LFS not showing tracked files
Asked by Jari Pentti:

Hey

I am having a lot of trouble with source tree LFS on one machine.

We have a gitlab account with lfs enabled by default on the repository.

The problem is that eaven though we have a file that has the LFS rules set up, my computers version of Sourcetree does not read that file at all. If I try to commit an mp3 file to the repository it prompts me that the file should be tracked with lfs. On my friends machine that I setup at the same time everything works as it should.

This is what the .gitatributes file has inside of it.

![insideconfig.png](/t5/image/serverpage/image-id/44841i2321C98EB960AD89/image-size/large?v=v2&px=999 "insideconfig.png")

This is what the Sourcetree LFS tracking window shows. It is empty, on the other machine I setup it shows the rules and everything works.

![lfs_typestotrack.png](/t5/image/serverpage/image-id/44842i017611D036537F5E/image-size/large?v=v2&px=999 "lfs_typestotrack.png")

I have tried from Options -\> Git \> Embedded and System, neither does nothing.

![triedthese.png](/t5/image/serverpage/image-id/44843i5ED3220CEFA3C159/image-size/large?v=v2&px=999 "triedthese.png")

I also tried to make a competely new Repository, initialised LFS, added rules and everything works like it should. Then I can see the LFS file types tracked in the window. As soon as I cloned the existing Repository from the GitLab it again lost the connection to the .gitatributes file and the LFS stopped working.

Is there a way to somehow disable LFS from the Sourcetree once and reinitialize it again? Or somehow to asosiate the .gitatributes file back in to the sourcetree since it seems it does not read it correctly for some reason. As said it works completely normal on the other machine with the same clone of the project.

I have reinstalled sourcetree from scratch using this but no help:

<https://community.atlassian.com/t5/Sourcetree-questions/How-do-I-fully-remove-SourceTree-so-that-I-can-do-a-quot-fresh/qaq-p/605355>


Answers:
author: Jari Pentti
body: Solved this partially allready. The problem was with the .gitignore file. Deleted the .gitignore file and now everything works like it should. Now to actually solve the problem...


author: Chaitanya Chowdary
body: ensure that files you want track are in root. Then only it is tracking.

comments: author: Gyuunyuu
body: what is meant by "root" here?
Is Microsoft .NET v4.7.1 required for Sourcetree, or will v4.5 suffice?
Asked by dohzer:

When running Sourcetree for the first time following installation, I receive the following message.

Will Sourcetree work with v4.5, or do I specifically need v4.7.1?

![dotnet.png](/t5/image/serverpage/image-id/44816i095FE3DB0D5BEA8B/image-size/large?v=v2&px=999 "dotnet.png")


Answers:
author: bgannin
body: Hi [@dohzer](/t5/user/viewprofilepage/user-id/2074731),

You do specifically need .NET 4.7.1 or higher to run Sourcetree for Windows.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: dohzer
body: Thank you for your help!
CLI (Command Line Interface) to Add Local Repo to SourceTree [Windows]
Asked by Midnight:

Is there any way to Add a local repository to be tracked by SourceTree without using the GUI?

I'm creating some workflow tools for an internal package manager for which it is important to be able to add a local repository to SourceTree via a command line. This will be run automatically by my tools and shouldn't require the user's input (besides maybe input of a username/password)

If there is a file that contains a list of repositories that I can edit, that would work as well. I tried looking around in the Program Files, but didn't find anything except an XML for which tabs were open.

Using the latest SourceTree version (3.0.17) on Windows 10.

Thanks


Answers:
author: minnsey
body: Hi  

I'm afraid there isn't currently a CLI to do that, however you could amend the %localappdata%\\Atlassian\\Sourcetree\\bookmarks.xml

comments: author: Jobin Kurian
body: How to do the same on Mac OS. Is that possible for one to add the repo to the Sourcetree GUI from the terminal?


author: ???
body: any progress? I would also like to go to bookmarks in macos terminal.
How to edit commit message in Sourcetree to attach a Jira issue
Asked by Eugene Pavlovs:

How to edit commit message in Sourcetree to attach a Jira issue to avoid "messages that are missing valid issue keys" ???


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: In Sourcetree, you can select the commit for which the message needs to be modified and then choose "**Interactive Rebase..** " from the **Repository** menu.

Use "**Edit Message** " during the rebase to include the JIRA key and click "**Ok**" to save the change.

comments: author: rohit_kumar
body: Many thanks, Jobin, it resolve the issue.


author: Eric Lebel
body: Edit:

My remark was more about editing commit messages in general.

--------------

Not really intuitive I'd say here. Why can't we do this easier ? it seems to me that this an operation that everyone has been asking for years. (I even edited this message!)


author: bgannin
body: Hi [@Eugene Pavlovs](/t5/user/viewprofilepage/user-id/2390079),

You are able to enter whatever you'd like in the commit message editor in Sourcetree, even Markdown on macOS. There is no automated way to insert a ticket's reference into it from Sourcetree currently.

Right now it's more of a workflow problem. The way we do it on Sourcetree is to manually copy and paste the title as the first line of the commit message. Which then becomes the PR title and then the merge message in Bitbucket Cloud.

Please vote and comment on an existing ticket or file a new one via our public trackers ([Mac](https://jira.atlassian.com/browse/SRCTREE), [Windows](https://jira.atlassian.com/browse/SRCTREEWIN/)) for us to review and prioritize accordingly.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: bitbucket