youngmon/atlassian-qna huggingface dataset:
"Large files detected" prompt for directories added to LFS
Asked by nintendojunkie:

I'm playing around with git-lfs in SourceTree. I've manually edited the .gitattributes file to include a directory for Git LFS tracking, like so:

```
extensions/** filter=lfs diff=lfs merge=lfs -text
```

When I try to stage a large file in the "extensions" folder, I get the following prompt:

Capture.PNG

I have used

```
git lfs status
```

to verify that my large file is in fact being picked up by Git LFS. Why doesn't SourceTree recognize this?

SourceTree for Windows, version 1.9.6.1

Embedded Git version 2.8.1 (+ git-lfs v1.2.0)  
[](https://community.atlassian.com/t5/Sourcetree-questions/quot-Large-files-detected-quot-prompt-for-directories-added-to/qaq-p/109817?attachment-id=2309){#link_1168bba12daa45}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/3131/1/Capture.PNG){#display_1168bba12daa45_0}


Answers:
author: stevestreeting
body: This is ST failing to understand the '\*\*' operator, we'll get that fixed up (will link official bug here when filed)

comments: author: Peter Hansen
body: I've stumbled upon this issue as well, and our workaround was to explicitly set paths - a single \* character on wildcards works, it's just \*\* that fails.

It'd be great to see this fixed though!


Tags: git-lfs
What do these terms mean in SourceTree
Asked by Nalini Nadupalli:

2016-11-04_20h14_06.png

I have the above workspace. I have no idea what each of these names "Branches", "Remotes" mean. Also under these names there are multiple sub-folders. what do each of those mean? Please explain in simple terms. This is the first time I'm using SourceTree. Thanks a lot!!

SourceTree documentation has practically No desciption for the meaning of these names and what they are used for.

<https://confluence.atlassian.com/get-started-with-sourcetree/sidebar-847359144.html>

[](https://community.atlassian.com/t5/Sourcetree-questions/What-do-these-terms-mean-in-SourceTree/qaq-p/173259?attachment-id=188){#link_1168bc01d893f9}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/5093/1/2016-11-04_20h14_06.png){#display_1168bc01d893f9_0}


Answers:
author: Seth
body: There isn't a lot of documentation because those are standard terms for Git repositories.

You can't use SourceTree effectively without a basic understanding of how a git repository works. Check out these resources:

In the [Git online documentation](https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control), read sections 1.1 and 1.3, then chapters 2 and 3.

Don't worry too much about the literal commands - obviously you prefer a GUI. But it is important to understand what the operations are, and how they interact with each other.

SourceTree's interface maps directly to git commands 99% of the time. So when the docs say to run "git commit", try hitting the Commit button. If they say to run "git add \*", try right-clicking a file and choosing "Add".

comments: author: Seth
body: Atlassian has its own tutorial about version control, if you prefer to try that: <https://confluence.atlassian.com/get-started-with-sourcetree/version-control-and-sourcetree-847359072.html>
Oops, you've made a malformed request.
Asked by William Record:

i just tried to update my source tree, i know my username / password and can log in to Atlassian to view / download my license.

however every time i launch source tree it asks me to register and i enter my information and i get a screen that says

Oops, you've made a malformed request. {#toc-hId-1843926786}
============================================================

If you came here from a link we sent you, please contact support.

<br />

* [Terms of Use](https://www.atlassian.com/end-user-agreement)
* [Support](https://support.atlassian.com/)
* [Privacy Policy](https://www.atlassian.com/company/privacy)

i was trying to install / update

SourceTreeSetup_1.9.6.1.exe


Answers:
author: Saurab Verma
body: Hmmm, it is still not working for me. Tried many versions. Am using git cola as an alternate.


author: Deltadave
body: Having the exact same problem with 1.9.6.2. I'm going to try falling back to 1.8.3

comments: author: Deltadave
body: no dice with 1.8.3 either. Something is broken. Further fallback to command line git (not nearly as nice as sourcetree, but it works til this is resolved).
How do I rollback to a previous commit to make changes that were missing without losing all the work completed since?
Asked by whitecobalt-simon:

I need to locally rollback to a previous commit in sourcetree because code is missing from a deployment, but I do not want to lose all the work done that has been committed and pushed since that earlier commit.

I find sourcetree's terminology and options confusing and sometimes they don't work as I would expect them to.

How do I do rollback to get previous versions of files to make changes without losing the changes made recently? Thanks!


Answers:
author: whitecobalt-simon
body: Don't worry. I think Sourcetree was playing up as when I reset my branch I could make the edit, deploy the DLL and then PULL all commits again. :smile:


author: Seth
body: The solution that you are probably looking for is called "rebasing". It's a method within git where you rewrite a portion of the git history.

However, this is a very bad approach if you've already pushed the commits you want to modify. The reason for this, is that rebasing essentially discards the old commits and creates new ones with new hashes. Any coworkers/team members that have pulled the unedited commits are going to start getting very strange error messages if they try to do any work in that branch, and will have to jump through a bunch of hoops to "repair" their local repositories.

The right solution is to just make a new commit that has the fix you need, and deploy that instead of whatever you are currently trying to deploy.


author: thinsoldier
body: You can select any commit and then select any file within that commit, right click, open selected version.

That will open the version of the file at the time of the selected commit. You can copy and paste changes to the current version of the file.

Without knowing the specifics of your project that's the best approach I can suggest.

In other scenarios you can reset a branch to a particular commit or reset just 1 file to how it used to be in a particular commit or cherry pick another commit onto your current branch or Reverse Commit to undo all changes that were introduced in a particular commit.


author: Seth
body: Why do you need to rollback? Just add the changes in a new commit.
How to remove repository from local without removing it from remote?
Asked by Douglas Pope:

Because my development machine has a tiny drive, I need to conserve drive space whenever I can. Is there any way to remove a local repository that I am not currently using from the local drive without removing it from the remote site (I'm using GitLab, so I don't want to remove it from GitLab, only from my local machine)? Thanks!


Answers:
author: Mikael Sandberg
body: Just delete the repository locally, it will not affect your remote repository. Just make sure that before you delete it, that you have pushed all your commits to the remote. In SourceTree you just right-click on the repository bookmark and delete it, and it will ask if you want to delete just the bookmark or also the repository. Note that it will leave the .git directory, so you will have to manually remove that.

comments: author: Ikthedar Chowdhury
body: Unfortunately I don't see any Bookmark option in my SourceTree.


author: Bharadwaj.Gorthy
body: It is the option to the top right corner on sourcetree. Click on it and you would see a list of repositories on your local machine and once you right click on the one that you want to delete and you would find an option

![Capture.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/113106i68AB48CC802A2B42/image-size/large?v=v2&px=999 "Capture.JPG")


author: Mamatweli Turdy
body: Hello:

While I was trying to import the repo to Eclipse, had the same issue, searching online came across this post. downloaded SourceTree, I thought I was deleting the one causing the issue, now it seems like I deleted everything else but the troubled branch.

Is there a way to get it back?

If someone can help me with this, I'd really appreciate it.

Thank you so much!!


author: Alexander Pampushko
body: Your local repository and your remote repository are equal.

You may delete local repository and this not make any change in you remote repository.

use git command for get remote repo,

add remote repo for your local repo

or delete link to your remote repo

```
git remote -v git remote addgit remote rm
```
error: pack-objects died of signal 9
Asked by koushichan:

I have a problem to make new clone.  

warning: templates not found C:\\Program Files\\Git\\share\\git-core\\templates

<br />

error: pack-objects died of signal 9  
error: git upload-pack: git-pack-objects died with error.  
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.  
remote: aborting due to possible repository corruption on the remote side.  
fatal: early EOF

fatal: index-pack failed  

what can i do?

using windows7

source tree ver. 1.9..1

I can mane new clone from one server(A) but I have problem another server(b)

and I could fetch B at this A account

these server managing same company

I hope somebody advice me

thanks


Answers:
author: Seth
body: <http://stackoverflow.com/questions/4826639/repack-of-git-repository-fails>

Chances are the server hosting your repository is running out of memory. If you do some google searches for "git clone error: pack-objects died of signal 9" you'll find articles like the one above that describe some things you can do to get around the memory issue.

If those work, you could also request for the memory on those servers to be increased, or switch to a professional hosting service (github or bitbucket, for example).


author: koushichan
body: Thank you for your advice.  
Now it was solved!

comments: author: Chiheb Hmida
body: I have got the same problem when I try to make this instruction : git pull

<br />

error: merge-base died of signal 9

error: fetch died of signal 9  

How did you solve the problem please
How do I restore a missing local repository from remote?
Asked by Felix Groll:

When I delete the main folder of my local repository (because I'm currently not working on it, and its on the same version as the remote) the SourceTree Repository Browser gives me the error message "Repository moved or deleted".

That's fine. But then my only options are to delete the Bookmark or specify another location with a version of the repository. But what if I don't have a local version and just want to continue to work on the most current, remote version?

I don't even see a possibility to get the original remote URL. So I'd have to delete the Bookmark in the SourceTree Browser, somehow retrieve the original remote URL and recreate it again as new repository... is that the only way?


Answers:
author: Johannes Kilian
body: I cannot imagine another way ATM.

When you delete a local repository - you usually also remove the .git-folder. Within the .git-folder within the .config-file the remote URL is stored. By removing the local repository you therefore also remove the information about the original remote URL. As SourceTree does not store the remote URL internally but rather relies on the presence of the .git/.config file as source for the remote URL, deleting this file makes SourceTree acgnostic of the former remote URL.

The only way I see, is to clone your repository again and add it to SourceTree again ...


Tags: mac
Where to find 1.9.5 of sourcetree
Asked by tstickel:

Where can i get 1.9.5 --\> 1.9.6 just locks up my main windows 10 desktop and spawns off tons of processes "git for windows" with no ending... I need an older version!


Answers:
author: Jonas Andersson
body: Here :smile:

<https://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.9.5.0.exe>


author: tstickel
body: Well, 1.9.5 same thing. GitKraken is not spawning tons of 400 mb "git for windows" processes and neither is gittortoise


author: tstickel
body: Thanks! I hope that this version fixes the nightmare of 1.9.6 on my desktop with windows 10 , 1.9.6 worked fine for me on windows 7 and 8 computers , and my co-workers windows 10 it runs fine. Not sure what the conflict is, but it make it impossible to use as i would have to hurry and pull and commit/push and close as fast as possible before the memory would leak ... crazy
Sourcetree is getting very slow
Asked by Christian:

Hi,

I'm using Sourcetree for a while now. Since some days it is getting realy slow.

Opening a local repository (GIT) it takes around 30 Seconds at all. I noticed that on Tab "Log / History" mainly the area where "File Status" , "Branches", "Tags" and "Remotes" is located at is taking this long for being loaded. for a local Repository!?

Fetching, pulling and pushing of Remote Repositories does take 1 to 2 minutes.

I'm not sure what have changed and I don't know where to look at or what to check to find out the reason for this poor Performance.

I'm using Windows 10, maybe the reason is located here?

I'm using SourceTree 1.7, but also with the latest Version (1.9) there is no difference.

Would be great if s.o. could help!


Answers:
author: Rick Culpepper
body: Since Windows 10 Anniversary Edition was released, lots of folks are reporting really odd issues with SourceTree related to performance, UI oddities, etc. I use SourceTree on Windows 10 and have updated to the Anniversary Edition and do not see these issues with SourceTree. However, I see many similar issues with almost every other application that I use regularly from Outlook 2016 to Visual Studio 2015 to my UC client (Jabber) and even WebEx.

Long story short, I am ditching Windows 10 and going back to Windows 7. I strongly suspect it is at the root of odd application behavior being reported to software producers around the world.

YMMV.

comments: author: Christian
body: Since I installed some Win10 Updates lately, Sourctree is running fine again!


author: cristiam
body: Just use Git Kraken: [gitkraken.com](https://www.gitkraken.com/), this is unacceptable


author: douglascayers
body: On Windows 10 x64 with SourceTree **v2.1.11.0** I the app was slow for me too. Would take 3-5 seconds or more for SourceTree to scan and detect file changes even in small repos with only a hundred text files of 300 lines or less each. Trying to open another bookmarked repo would sometimes freeze the app entirely.

I then noticed that the embedded Git version was out of date so I updated it and after restarting SourceTree now everything is snappy again.

Coincidence or perhaps related to [this conversation](https://community.atlassian.com/t5/SourceTree-discussions/SourceTree-2-0-is-horribly-slow-and-not-scaling-well-on-Windows/m-p/597264#M182), worth a shot to make sure not only is SourceTree current but the embedded Git is current too.

***Tools \> Options \> Git***

*![2017-08-30_9-34-34.png](https://community.atlassian.com/t5/image/serverpage/image-id/5439iA39BD58F26A98ADD/image-size/large?v=v2&px=999 "2017-08-30_9-34-34.png")*


author: Hadi Eskandari
body: I have the same problem. I don't think it is Windows 10 Anniversary as it has been constantly a struggle after that. It was working fine until I made an update, should have known better to leave it alone as the old version was working perfectly.

Is it possible to downgrade/install older versions to see where this perf issue started?
SourceTree ignore everything except one extension
Asked by Hrvoje Velicki:

How to define in gitignore to ignore all except one file extension?

So I just want to track one file extensions.

I try something like this -\> !\*.sql

but this not working.


Answers:
author: Johannes Kilian
body: Read here: <https://git-scm.com/docs/gitignore>

*"An optional prefix "!" which negates the pattern; any matching file excluded by a previous pattern will become included again"*

As said, you have to exclude everything first (with pattern '\*') , then include some patterns again (your desired '!\*.sql').

*** ** * ** ***


author: Hrvoje Velicki
body: Tnx! :wink:

It works!
SourceTree is not accessing keychain items in macOS Sierra
Asked by Lee Probert:

Have just updated to macOS Sierra, and now SourceTree will not see my Github keychain item when accessing repositories. I have checked the keychain item and it is there and has SourceTree permissions assigned. It asks me to type in the password repeatedly, but never completes.


Answers:
author: Lee Probert
body: I had a breakthrough with this: connect to your GitHub repository in the terminal and pull, commit or whatever you need to do. After doing this, SourceTree suddenly worked. I think the Terminal accessing the keychain somehow fixed it in Sierra.

comments: author: Jason Pollack
body: Thank you for posting this. I was struggling with the same problem, and your workaround fixed it for me too.
Is SourceTree for commercial use for free?
Asked by Piotr Matusiak:

Hi,

Could you please confirm for me if Source Tree software is fully open-source and free for commercial use.

I know there was same question in 2013 on forum but I want to confirm if still valid.

I cannot find EULA for SourceTree anywhere

Please let me know asap

KR,

Piotr


Answers:
author: Seth
body: SourceTree is closed-source.

SourceTree is completely free for any use. You must register SourceTree with a free Atlassian account.

Previous question/answer: <https://answers.atlassian.com/questions/154537>

The answerer of that question (Steve Streeting) is Atlassian staff: <https://developer.atlassian.com/blog/authors/sstreeting/>


author: MonteChristo
body: I am sure Seth knows what he is talking about, but having an authority from Atlassian confirm this would be very helpful and much appreciated, especially since the most pertinent Google search result is marked as outdated without a link to up-to-date info.

[SourceTree License For Corporate Usage](https://confluence.atlassian.com/sourcetreekb/sourcetree-license-for-corporate-usage-388404078.html)

comments: author: Seth
body: Yeah, that's outdated because you can no longer generate corporate keys in that way. To obtain a license for SourceTree, you must log in with an Atlassian ID during installation.

As I said before, SourceTree is completely free for any use. This has been asked and answered on this site possibly hundreds of times. This site is a community Q\&A that is hosted by Atlassian, so you shouldn't expect to receive an "official" answer, although Atlassian staff does answer sometimes.

I've added some links to my original answer.
How can I resolve a conflict on a file?
Asked by Johan E. Bengtsson:

This is pretty basic, but the user interface does not make obvious what to do. I did not use SourceTree much.

There is only a "master" branch. A file has a conflict on a single line. Trying to do either a Pull or a Merge shows the file, with two versions of the line (with + and - signs). Now what? I want to tell SourceTree to just pull the updated file from the repository, but how can I do that?


Answers:
author: Johan E. Bengtsson
body: Not sure how this got marked as "bitbucket-server", will try to ask again in the SourceTree topic.

In any case, I do not have a messed-up file, and selecting "reject hunks" (what does that really mean?), produces a .rej file with this content:

diff a/css/service.css b/css/service.css (rejected hunks)  
@@ -1,6 +1,6 @@  

body {  
- background-image: url(../image/texture.png);  
+ background-image: url(../image/texture_simple.png);  
background-size: 100% 100%;  
background-attachment: fixed;  
}

Not too sure what "command line" you are talking about, I am a poor Windows 10 user, but would be completely OK running any command line to fix the problem, even under Cygwin. It is weird though, SourceTree is supposed to simplify and make visibile what I am doing, right?

comments: author: Jobin Kuruvilla [Adaptavist]
body: SourceTree doesn't do merge conflicts. You might find this discussion useful.

<https://answers.atlassian.com/questions/156961>


author: Johan E. Bengtsson
body: Jobin, thanks for replying. I have resolved the issue. Summarizing for the benefit of anyone searching for how to handle this type of situation:

* SourceTree allowed me to push a version that was conflicting with another version pushed by another developer. I think I received no advance warning, but not sure. The conflict was pretty trivial, but it blocked further work.
* To select the good version to be the current one, I had to enable "force push" (in essence overwriting instead of merging). This was complicated, since SourceTree seems to think it is in my best interest to not have this option - but it is very necessary when stuck.
* I had to update to the latest SoucreTree version to have the option of enabling "force push" - v1.9.6.1 has it under Tools... Options... Git.
* Later on, I might look into automatic merge tools, but this was so trivial that it was not needed. In any case, I did not get a combined file that I could resolve manually either, only a .rej file with diffs after pushing the "Reverse hunk" button - I would have managed with that if there had been a need to do a manual merge instead of just selecting one of the versions.

I think I have now succeeded in tagging this question as "sourcetree" instead of "bitbucket-server".


author: Jobin Kuruvilla [Adaptavist]
body: SourceTree does not have a merge tool. You can use another merge tool like Meld and configure it to be used with SourceTree. You can do the same thing with command line.

Or you can open it in a simple text editor and resolve it yourself. In any case, merge resolution happens outside the Bitbucket Server.
Sourcetree won't follow local repo
Asked by Atlassian Spam:

Recently, my sourcetree refuses to acknowledge actions that I take using git bash. If I am on branch A in sourcetree and checkout a different branch manually in the terminal, Sourcetree still shows me on branch A, and will continue to show me on branch A until I restart sourcetree or change branches through the UI.


Answers:
author: Seth
body: Try to hit F5 while in SourceTree (also available in View \> Refresh).

comments: author: Atlassian Spam
body: Cmd+r works, but this functionality used to be automatic. How do I get it that way again?