How to stop Egit committing additional source folders in Flash Builder

I'm using Flash Builder 4.6 (Eclipse 3.7) and Git (eGit plugin).

My project has some additional source folders configured under "Build Path > Source path". When I run a commit, for some reason eGit sees these external files and wants to add and commit them with paths like:

[source path] fruit/com/company/
[source path] fruit/com/company/

Obviously being outside the project they shouldn't be considered by eGit at all; nevertheless I tried various patterns in my .gitignore to get them ignored, but nothing worked:

[source path] fruit/com/company/

Using msysgit, the command git commit -a --dry-run does not attempt to commit these files, so it seems to be an eGit / Flash Builder thing.

How can I get these files ignored?


A first step is to ensure, when you want to ignore a directory, that the path of the directory ignored ends with a / in your .gitignore:


That would ignore fruit directory within the directory of the .gitignore (so make sure to place said .gitignore at the right place)

However, regarding linked folder (which is what fruit is, as the OP Fletch mentions in the comment), .gitignore will not work. Linked folder should be ignored by defaults by EGit: see bug 333338. The patches are written, but not yet integrated into the latest EGit release.

Update: Since EGit 2.3 (February 2013), linked folders are now ignored in Egit.

Need Your Help

How to load models in Laravel?

php codeigniter laravel eloquent

I started studying Laravel and ran into a problem using models. How to load them? For example in CodeIgniter i used it like $model = $this->load->model('some_model'). In Laravel when i call i...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.