Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » .git Folder Visible in Navigator
.git Folder Visible in Navigator [message #653346] Wed, 09 February 2011 13:30 Go to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: February 2011
Junior Member
I've been using SVN/Subversive for years and wanted to get into Git. I've decided to give EGit a try.

When I follow the tutorial on this page:
http://wiki.eclipse.org/EGit/User_Guide

...I end up with a project and a git repository and everything (including git-related stuff) seems to work fine. I can commit, view history, etc. However, when I view the project in a navigator view, the .git repository folder is visible and shows in the view as unversioned-files.

This doesn't seem right. None of the screenshots in the tutorials show a visible .git folder. Also, when I clone a remote git repository and create a new project from it, the .git folder is properly hidden from view.

Is there something simple I'm missing here? Is this a known bug?

I'm running Helios on Windows. I have the most recent EGit plugin as of the time of this writing.

Thanks!
Re: .git Folder Visible in Navigator [message #653392 is a reply to message #653346] Wed, 09 February 2011 15:56 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 09/02/2011 13:30, eclipse@musicware.com wrote:
> I've been using SVN/Subversive for years and wanted to get into Git.
> I've decided to give EGit a try.
> When I follow the tutorial on this page:
> http://wiki.eclipse.org/EGit/User_Guide
>
> ..I end up with a project and a git repository and everything (including
> git-related stuff) seems to work fine. I can commit, view history, etc.
> However, when I view the project in a navigator view, the .git
> repository folder is visible and shows in the view as unversioned-files.
> This doesn't seem right. None of the screenshots in the tutorials show a
> visible .git folder. Also, when I clone a remote git repository and
> create a new project from it, the .git folder is properly hidden from view.
> Is there something simple I'm missing here? Is this a known bug?
>
> I'm running Helios on Windows. I have the most recent EGit plugin as of
> the time of this writing.
> Thanks!

I find if you Close the Project in Package Explorer and then Open it
again the .git folder remains permanently hidden.

Phil
Re: .git Folder Visible in Navigator [message #653689 is a reply to message #653392] Thu, 10 February 2011 17:40 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: February 2011
Junior Member
Thank you for the suggestion, Phil. I gave it a shot but no luck. The folder still shows up in the Navigator view. I tried your suggestion on a brand new project just to be certain. I also tried it on my Mac and the issue happens there as well. For good measure I tried closing the project, exiting Eclipse and then going back in and opening it back up. The folder is still there.

By the way, the folder doesn't show at all and never has shown in the Package Explorer - only in the Navigator view. So, this isn't a huge deal when I'm doing Java projects. However, there are some web-based projects that I do where I and my team work in the Navigator view quite a bit. I just don't want someone accidentally messing up the .git folder because it's visible.

I'll look for another solution and see about submitting this as a bug. Thanks again for your help.

- Mike
Re: .git Folder Visible in Navigator [message #653696 is a reply to message #653689] Thu, 10 February 2011 17:50 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 10/02/2011 17:40, eclipse@musicware.com wrote:
> Thank you for the suggestion, Phil. I gave it a shot but no luck. The
> folder still shows up in the Navigator view. I tried your suggestion on
> a brand new project just to be certain. I also tried it on my Mac and
> the issue happens there as well. For good measure I tried closing the
> project, exiting Eclipse and then going back in and opening it back up.
> The folder is still there.
>
> By the way, the folder doesn't show at all and never has shown in the
> Package Explorer - only in the Navigator view. So, this isn't a huge
> deal when I'm doing Java projects. However, there are some web-based
> projects that I do where I and my team work in the Navigator view quite
> a bit. I just don't want someone accidentally messing up the .git folder
> because it's visible.
> I'll look for another solution and see about submitting this as a bug.
> Thanks again for your help.
> - Mike

Mike it hides for me OK even in the Navigator View. I'm on Windows 7.
Eclipse 3.6.1 and EGit 0.11.0.201102081906.

Phil
Re: .git Folder Visible in Navigator [message #653747 is a reply to message #653696] Thu, 10 February 2011 23:02 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: February 2011
Junior Member
Okay, I figured it out. I was running the 0.10.1 release. I installed to bleeding edge build and was eventually able to solve it.

Interestingly, even after upgrading the plug-in the .git folder still would not go away in my previously existing project. Opening and closing the preexisting project didn't get rid of the folder either.

I had to create a new project, close it, and reopen it, then the folder finally went away.

I hope this helps someone out there. Thanks for your help.

- Mike
Re: .git Folder Visible in Navigator [message #654181 is a reply to message #653747] Mon, 14 February 2011 14:00 Go to previous message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 10/02/2011 23:02, eclipse@musicware.com wrote:
> Okay, I figured it out. I was running the 0.10.1 release. I installed to
> bleeding edge build and was eventually able to solve it.
> Interestingly, even after upgrading the plug-in the .git folder still
> would not go away in my previously existing project. Opening and closing
> the preexisting project didn't get rid of the folder either.
> I had to create a new project, close it, and reopen it, then the folder
> finally went away.
> I hope this helps someone out there. Thanks for your help.
>
> - Mike

I discovered that if I share a project with the project tree nodes open
then I can see the .git folder in Package Explorer (assuming you haven't
filtered "*.resources"). But share the project with the project node
collapsed and you don't see it.
Previous Topic:Confirmation of possible bug please?
Next Topic:update site is down
Goto Forum:
  


Current Time: Wed Sep 18 21:24:55 GMT 2024

Powered by FUDForum. Page generated in 0.04894 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top