youngmon/atlassian-qna huggingface dataset:
Using SourceTree
Asked by vikas mangal:

Do you have any tutorial for using git on sourcetree ?


Answers:
author: Jeff Thomas
body: Atlassian has a tutorial for Git here - <http://www.atlassian.com/git>

That tutorial is designed for the command line, but you should be able to convert most of the commands to their SourceTree equivalent. It looks like you're using the Windows version of SourceTree and there is no built in documentation yet, but Atlassian says it is coming.

comments: author: vikas mangal
body: Thanks for the answer :) One more thing- In Source Tree, there is an option of your name and email which it uses as 'author for commit' and another tab for 'Authentication' in tools-\>option menu. Can you please tell the significance of these two options. And, Can one use the source tree for git if he/she doesn't has his/her online GitHub account? This question may sound a little dumb but I am new into this. :)


author: Jeff Thomas
body: When you make a commit in Git, the name and email address is included in that commit and the history. The Authentication is used to connect to any hosted repositories that require credentials.

You can use SourceTree without having an external account. You'd just be managing the local Git repository but would not be able to push it out to GitHub.

Let me know if you have any other questions!


author: vikas mangal
body: Thanks you again for your answer. But I am still a bit unclear. This time my question may go a little long. Suppose I have only one online account on GitHub and I share its credentials to 5 people. I want these 5 people to work on some problem together. Then, can each one of them can use SourceTree to manage his/her local repository and also push/pull to the central repository on that online account of which I shared the credentials? Thanks again ...


author: Jeff Thomas
body: I'm not too familiar with how GitHub handles credentials, but yes you should be able to do that.

Each person would be able to clone the repository to their local machine and manage it with SourceTree. When they're ready, they could then push their changes to GitHub for the rest of the team to see.

If you don't want to share credentials, you could look at setting up collaborators for the repository on GitHub, but everything above should work the same. <https://help.github.com/articles/how-do-i-add-a-collaborator>


author: vikas mangal
body: Thank You so much :) It helped me a lot.


author: Jeff Thomas
body: You're welcome, glad to help!


author: vikas mangal
body: Thanks for the answer :) One more thing- In Source Tree, there is an option of your name and email which it uses as 'author for commit' and another tab for 'Authentication' in tools-\>option menu. Can you please tell the significance of these two options. And, Can one use the source tree for git if he/she doesn't has his/her online GitHub account? This question may sound a little dumb but I am new into this. :)


Tags: git

tutorial

windows
SourceTree Git Flow Finish Feature Delete Remote Branch
Asked by Sam North:

After doing some research to see if anyone else wanted the same thing that I wanted. I found [SRCTREEWIN-782](https://jira.atlassian.com/browse/SRCTREEWIN-782) on Jira for SourceTree. It says that it has not been started yet and I was wondering if this is something that will be done in the future or if it is not practical. I am fairly new to Git and SourceTree, but I understand how Git Flow works. I noticed that you already have the "Delete Branch" AND "Push changes to remote" on the finish process of "Release" portions of Git Flow and it merges and deletes the remote and local release branch. I was wondering if you could have the same "Push changes to remote" option for when finishing a "Feature". Currently it just deletes the local feature branch and leaves the remote feature branch there. Throughout time, this would create many, many, many feature branches in our Repository that we wouldn't use ever again. I personally feel like it "should" have the option to delete the remote feature branch.


Answers:
author: Dan Hanley
body: +1 for this. It's very confusing after a while to tell which remote branches are still live. And my devs keep forgetting to delete them manually.

comments: author: Gavin Engel
body: Agreed. I'd love to have a couple options: 1. delete from local; 2. delete from local and remote;


author: Jason Kanaris
body: ...


author: jackchung1
body: I would like to see this feature as well


author: Serhan Uygur
body: +1 for this uption! this is what makes git flow so clear imo, it is so essential.


author: Francesco Leonetti
body: Totally agree. There should be an option in the dialog to delete the remote branch too... If forgotten, the origin/remote becomes soon a mess.


author: Isuru
body: I too came across this issue. I found this fork of git-flow called the avh edition(<https://github.com/petervanderdoes/gitflow>) fixes this behaviour among other improvements. Its actively maintained unlike the original. There are feature requests to integrate the avh version to sourcetree. Please vote for them. (Windows - <https://jira.atlassian.com/browse/SRCTREEWIN-1394>, Mac - <https://jira.atlassian.com/browse/SRCTREE-1762>)


author: Geoff Sokoll
body: Yep, totally agree (but I logged that Jira issue in the first place, so I'm biased :))


author: Gal Segal
body: Totally agree. Voted on this issue.
Source tree keeps asking for password when execute pull/push commond
Asked by rui wang:

When excute git pull/push commond, the source tree keeps asking for my password as the following picture showed, but in the terminal, the git pull/push commond works well and dose not asking for the password, could anyone tell me why, many thanks!

![](http://ww2.sinaimg.cn/bmiddle/6da389dctw1eakcvpq16ij20bs06k0sz.jpg)


Answers:
author: Jason Ji
body: Did you ever resolve this? I'm having this issue now as well.


author: Edward Kaminski
body: I'm having the exact same issue. I've tried every solution people have posted on the internet:

* delete keychain pw
* change the repo url to include the username (<https://username@host.com/path/to/rep.git)>
* Go to Repository \> Repository Settings \> Remotes --- click the repo path and hit edit, add your username there so Keychain can find the appropriate pw.
* In the repo list view, go to Accounts and set the pw there

NOTHING works. Every time I fetch, push, pull, whatever, it still asks me for my damn password. Every. Single. Time. The Store Password In Keychain checkbox does nothing, and I'm supplying my username all over the place, so keychain needing that bit of info ahead of time in order to work is also not the solution. This problem never happened until I recently did an update. According to the About info, I'm running version 2.4 (88) now. So, whatever that upgrade did must've introduced this problem. This is REALLY annoying.


author: SuperAtic
body: I had the same problem and basically just you need to delete the passwords in your keychain.

After that, try to add a repository and click in the icon in the right (world icon)![](https://confluence.atlassian.com/download/attachments/304578655/sourcetree_clone.png)

You will be asket to insert your password and login again...

That's it

;)


author: KieranA
body: Hey rui,

Looks like your URL format might be wrong. Could you post a redacted version in its current format?

Thanks in advance


author: Seth
body: Is it possible that your terminal is configured to use a keypair, but SourceTree isn't?


Tags: git
SourceTree taking over 2GB of memory
Asked by Frank Kelly:

I am running SourceTree 1.7.4.1 on

mac OS X 10.7.5

And SourceTree is using 2.68 GB of memory.

I restart it and it uses only 44MB and the memory usage quickly climbs!

When I open a basic GitHub project memory climbs to \~65MB.

But when I open my main project (internally hosted Git repo) it climbs to 530MB and climbs from there

Please help!


Answers:
author: Frank Kelly
body: FYI I had over 24,000 files which I was not indexing. Once I chose to Git ignore them and restarted SourceTree the problem appears to have gone away


author: KieranA
body: Were the filters set up so they're displayed in SourceTree?


author: brian walker
body: exactly
Sourcetree not tracking unity files in a folder
Asked by Adnan Agha:

I am using Sourcetree and Github as version control for my Unity project. I've never really used Github or Sourcetree before and I'm running in to a strange problem: my files do not seem to be tracked. I set up the repo on Github, cloned in on my computer with Sourcetree and then dragged the Unity project into the folder in the finder. Should I have added the project some other way? Is there some setting I'm missing?


Answers:
author: Caue Rego
body: Seems all fine procedure, all should be working. What exactly you mean by "not tracking"? Maybe you should double check the folders and links you did.
Sourcetree, cannot clone/pull anymore. sh.exe.stackdump
Asked by Anders Hvid:

Well since yesterday I haven't been able to Clone any new Repos and I haven't been able to pull from any of the once I have been using. Everything worked fine before but it seems (to me) that it randomly stopped working.

I also noticed a file named "sh.exe.stackdump" is being created in every repo I have cloned, no idea where it came from

Here is an example of an error I get when I'm Cloning, I have no idea what they mean so I was hoping to get some help here :)

```
git -c diff.mnemonicprefix=false -c core.quotepath=false clone --recursive https://github.com/UglyOldGuy/BoL e:\Users\Saftsnubben\Desktop\Buckets\TestCloning into 'e:\Users\Saftsnubben\Desktop\Buckets\Test'...m.AllocationBase 0x9F0000, m.BaseAddress 0x9F0000, m.RegionSize 0x4000, m.State 0x1000C:\Users\Saftsnubben\AppData\Local\Atlassian\SourceTree\git_local\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x9F0000 &lt;0xA00000&gt;) in child, Win32 error 0      0 [main] sh 11288 sync_with_child: child 11836(0x100) died before initialization with status code 0x1     11 [main] sh 11288 sync_with_child: *** child state waiting for longjmpC:\Users\Saftsnubben\AppData\Local\Atlassian\SourceTree\git_local/libexec/git-core\git-submodule: fork: Resource temporarily unavailableCompleted with errors, see above.
```

Regards

Anders


Answers:
author: Anders Hvid
body: Nevermind, somehow solved it by reinstalling sourcetree.


author: TheC
body: Even if the Question is old.   
Update the embedded Git-Version via   

Tools =\> Options =\> Git =\> Update embedded Git

helps.  

comments: author: etlecho
body: This saved my bacon! Everyone of the other solutions I found did nothing.


author: Fabio
body: Yeah, I started see this sh.exe.stackdump in every folder, updating embedded Git solved this.

Thanks!


author: PadamB
body: Tried re-booting, re-installing source tree did not help. But updating the embedded Git did it. You saved my day


author: Rod Barnes
body: Adding another solution: I downloaded Git directly (2.19.1) and then in SourceTree switched from \[Embedded\] to \[System\]. This worked for me.

Why? Because I tried the \[Update Embedded\] option (twice) and it wouldn't finish. Or, rather, it finished (no errors) but did not change the version of the embedded Git despite restarting SourceTree.


author: David Shaskin
body: I recently ran into this, and I was able to determine that Removing or Deleting the sh.exe.stackdump file causes this error.

So far, the only solution I can find is

1) Uninstalling SourceTree and anything to do with Git.

2) Restarting the computer

3) Re-installing everything you unistalled

comments: author: Chris Branch
body: This is the only solution that worked for me; thanks.
SourceTree CPU usage and slowness
Asked by kpowick:

I took a look at some of the similar questions on here regarding CPU issues, but they usually referred to older version of ST, or ST on Windows, or using Git. I think mine is a bit different.

I'm using ST 1.7.4.1 on OSX 10.6.8 with ST's embedded Mercurial (2.2.2). The machine is an iMac, quad-core i5 @ 2.8 GHz. I have 5GB of my 12GB of memory free. The CPU is idle.

I have a single repo open containing about 5,200 files of which only 7 are not tracked. The total size of the files is 63MB with the .hg folder reporting 5,658 files and a total size of 25.6 MB.

Each time I make a commit, ST will spike my CPU at 100% and take up to 15 seconds to refresh the working copy view. In the view, there are about 27 pending/added files. The filter is set to *Pending* , but having it set to*Modified* makes no difference.

While working with ST like this is passable on this machine, it is near impossible on my lower-class machines.

What is the issue here? Mercural, ST, Python?

I've been using ST on OSX since before it was picked-up by Atlassian and I've always raved about it, but this issue is really making me consider looking for something else.


Answers:
author: KieranA
body: Hey Kevin,

Sorry this is happening for you, there's a whole number of reasons things like this can happen. Before we can take a look into it, could you fill out the remaining details in the numbered section based on the link in this JAC issue? <https://jira.atlassian.com/browse/SRCTREE-1940>

I've filled out everything for you already, so there's only a few details left to fill out.

We can carry on with finding out what the problem is from there insead.

Thanks very much

comments: author: kpowick
body: Hi Kieran,

Thanks for opening the issue. I could not edit the original description, so I added the requested items as a new comment.

Regards,

Kevin


author: Chris H (OG)
body: I left Sourcetree running accidentally during a conference.

The battery usage went down faster than I noticed and could have ever imagined and therefore had to resort to pen and paper for half the day.

FIX YOUR APP ATLASSIAN.


author: kpowick
body: I guess that since there is a link to an issue that anyone can follow, I'll close out this question as per the email request I've received from *"Atlassian Answers"*.
Sourcetree since update is now ignoring my AndroidManifest.xml file but not other xml files
Asked by Grant Kemp:

When I tried creating a new project on android in sourcetree, the project was created, but it doesn't seem to track my androidmanifest.xml file int the root of my project.

1. If I rename it to txt, then it works

I have tried installing latest version of git. but not luck ..

Any ideas?


Answers:
author: Aseem Parikh
body: Is there a line in .gitignore that matches AndroidManifest.xml? You might need to check your global .gitignore file as well (\~/.gitignore_global)

\[edit\] Scratch that, I just tried reproducing this locally and am having the same issue. 'git status' shows the file as modified but Sourcetree does not. This might be a bug...

**Workaround**:

If you delete the repo from sourcetree (bookmarks only) and re-import, it picks up the file again.

comments: author: Grant Kemp
body: Hi

I tried deleting it and reimportnig it and it did't work.

But found the file in the global git ignore. I had to edit it using terminal command line. and it worked.
Use Beyond Compare as the external difference utility
Asked by m:

**Hi all,**

Any idea of whether it is possible to use Beyond Compare v2 as the external difference utility in Source Tree?

Thanks


Answers:
author: Ron Ratzlaff
body: I'm using SourceTree v1.6.3.0 and BeyondCompare 4.0 Beta build 18746. Selecting "Beyond Compare" as the option for Diff \| External Diff Tool in SourceTree works correctly with BC 4 Beta.


author: Johannes Kilian
body: I currently use BC3 ... not tested with BC4beta


author: Johannes Kilian
body: It's possible ... (SRCTREE-WIN)

Within SourceTree - open Menu*Tools-\>Options* ... under Tab "*Diff* " select "*Beyond Compare"* as "*External Diff Tool"*

To use it, select the *external diff* -Button ...

![](http://i.imgur.com/pcuzcy6.png)

comments: author: Johannes Kilian
body: At least it was possible as I configured it (prae 1.3. Version) - haven't verified configuration on latest SRCTree


author: Jeroen Pluimers
body: Does this work with beyond compare v2? (I don't have BC v2, and don't want to hose my BC 4 config, so can't test).


author: Jeroen Pluimers
body: Maybe the best is to add an issue at [](https://jira.atlassian.com/browse/SRCTREEWIN)<https://jira.atlassian.com/browse/SRCTREEWIN> like I did with [](https://jira.atlassian.com/browse/SRCTREEWIN-1458)<https://jira.atlassian.com/browse/SRCTREEWIN-1458>


Tags: beyond-compare

diff
Using my own hosted repository in Source Tree
Asked by Ashley Mosuro:

Hi there,

I'm fairly new to git and Source Tree in general, so apologies if I'm missing something blindingly obvious here!

In the past, I've easily been able to add a Bitbucket repository to my Source Tree mac app, but now I'm trying to add a remote repository on my own server that I've created without using Bitbucket.

My first question is if this is even possible?

If so, I must be getting the repository URL wrong, because whenever I try to add a repository in Source tree it's coming back saying 'This is not a valid source path / URL'.

The problem is, I'm not sure if it's an authentication issue or the fact that I'm just putting the wrong URL syntax in.

Again, I'm quite new to this so I can imagine I'm just getting the syntax wrong for the URL.

Here's the error I get when putting this URL in the Source Path/URL, **myusername@myipaddress:public_html/origin.git** :

```
/var/sites/m/mywebsite.com/.bashrc: line 41: ps: command not foundEnter passphrase for /var/sites/m/mywebsite.com/.ssh/id_rsa: fatal: protocol error: bad line length character: Initfatal: 'public_html/origin.git' does not appear to be a git repository/var/sites/m/mywebsite.com/.bashrc: line 41: ps: command not foundEnter passphrase for /var/sites/m/mywebsite.com/.ssh/id_rsa: fatal: protocol error: bad line length character: Initfatal: 'public_html/origin.git' does not appear to be a git repository/var/sites/m/mywebsite.com/.bashrc: line 41: ps: command not foundEnter passphrase for /var/sites/m/mywebsite.com/.ssh/id_rsa: fatal: protocol error: bad line length character: Initfatal: 'public_html/origin.git' does not appear to be a git repository
```


Answers:
author: Peter Van de Voorde
body: Hi Ashley,

I think there is something wrong with your git server, based on the error you get (bad line length character). Maybe this can help you : <http://stackoverflow.com/questions/8170436/git-remote-error-fatal-protocol-error-bad-line-length-character-unab>

Best regards,

Peter
Sourcetree 1.7 keychan problem on Mavericks
Asked by Luca Bartoletti:

I updated Sourcetree to the last version. It started to give me this problem. Every time i try to pull or push something i get an OSX popup that say:

"OS X wants to make changes. Type an administrato's name and apssword to allow this.

There is two option, deny and allow.

This happen every time, for every commit the popup appears two-five times.

Can you help me to solve this?

![Screenshot](http://s23.postimg.org/a4eejty97/Screen_Shot_2013_11_11_at_11_17_16.png)


Answers:
author: Luca Bartoletti
body: I resetted the keychain and re-created the rsa keys for bitbucket.


Tags: mac
Git history default filters
Asked by motta_lrd:

Hello,

I would like to have as a default filter configuration for my history   
\[Current branch\] + \[First parent only\]  
I did not found any configuration to do that. The attached image better explains what I need.   

Thank you

![](../../upfiles/Screen_Shot_2013-11-06_at_10.42.58.png)


Answers:
author: motta_lrd
body: any help with this issue?


author: motta_lrd
body: anyone?
Is "Push commits immediately" working fine when a local branch is tracking a remote branch with a different name?
Asked by Ramiro S?nchez:

Hello,

Maybe I am wrong and this is the desired behavior, but I think the "Push commits immediately to" is not working fine when you have a local git branch tracking a remote branch with a different name.

In this case when you commit ant check the "Push commits immediately to" I was expecting that my commit will be pushed to the followed remote branch (remember with a different name than the local one), but instead a new remote branch is created with my local name at origin. Is this the expected behavior or is this a bug?

Thanks,

Ramiro


Answers:
author: XaeroDegreaz
body: I've recently started renaming my local branches to be more descriptive of which issue I'm tracking. When you commit, and then use the "Push immediately to..." function, it wants to create a remote branch with the same name. This is quite bad, as it has completely made me look like a noob the past couple days as I was committing away without first checking.

If you right-click on the branch in the sidebar, you can select the "Push to \[...\] (tracked)" option. It seems pretty inconsistent. At the very least there should be another checkbox in the commit window that allows us to choose to push to the tracked branch, or a branch named the same as our local branch.

To fix the issue so that the commit window always uses your tracked branch, you can go to

**Preferences \> Git \> Set "Push branches" to "upstream"**

**![](http://snag.gy/oSx21.jpg)**

comments: author: Ramiro S?nchez
body: This solves the problem.

I noticed also (at least now, not sure if this was also true with the latest sourcetree version when I posted the question) that you can be sure before the commit where the changes will be pushed because the message near the checkbox tells you...
> *Push changes immediately to **branchName***

And you can see that branch name changes from your local one to the remote one when changing the configuration like xaero indicated.

Thank you very much.


author: victoraldecoa
body: It is not working fine. For sure the most intuitive behavior is to push immediately to the tracked branch instead of creating another branch with the same name.

It's a very annoying bug indeed.
SourceTree ZIP or MSI
Asked by David Hsu:

Hi,

Is there a ZIP or MSI installer I can download for the latest version of SourceTree? Our firm policy only allows specific file types to be downloaded directly.

Thanks,  
David


Answers:
author: Jo?oS
body: I had a look and talked to a guy from the Sourcetree team and apparently there isn't an open Sourcetree archive.  
But I'm still looking!  

In the mean time, if Sourcetree is essential for your current work, you should probably talk to your proxy administrator.   

I'll come back to you as soon as I get something.  

Cheers!

comments: author: David Hsu
body: Thanks, Jo?o. My firm is pretty regulated so putting exemptions through is not fast. If there is a way to have the SourceTree team publish the EXE as ZIP file in addition to EXE it would solve the issue for me and others as well.


author: Jo?oS
body: Hello David,  

I have bad news and good news for you, so let's get on this:

The bad news is that it appears to be only downloadable in ".exe" format.  
(I'll ask the developer tools' support team here if is there any ftp with other download options)  

The good news is that I'm very eager to help you.  
So if it's just a logistic problem I'll be uploading on my Google Drive and MEGA account a zip with the exe file.  
(I know it's silly, but I hope it helps you)  

MEGA:  
http://goo.gl/CntWuS  

Google Drive:  
http://goo.gl/AdEiwR  

<br />

If you have any questions related, just ask me and we'll try to get the info for ya!  

Cheers!

comments: author: David Hsu
body: Hi Jo?o,

Unfortunately, I do not have the ability access to either Google or Mega Drive from my work environment. Ideally if this can be downloaded from Atlassian it would be ideal.

Thanks,

David