updating gitignore file from egit in Mac

I’m new to git (and egit), and am having some problems with it. The problem I’m seeing now is that every time I’m trying to push or merge, I get DIRTY_TREE errors, for files with .DS_Store and .classpath suffixes. I tryed adding those suffixes to the gitignore file in both the local and shared repository , but it doesn’t seem to help – git still looks for these files when trying to do anything. Is there anything special that needs to be done in order to change that file?
I’m using eclipse Juno from Mac, let me know if you need any more details.

  • Creating a working copy of a GIT repo
  • How to import a GIT non-Eclipse Java project into Eclipse?
  • Eclipse VisualSVN error svn E175002: java.lang.NumberFormatException
  • Eclipse shortcut for Compare With Head Revision
  • Retrieving Branches from GIT url using java code
  • Eclipse: Relocating a git repo from project to workspace
  • how dependent am i on git submodules?
  • How do I selectively merge files from branch into master in git?
  • How to invert `git log --grep=<pattern>` or How to show git logs that don't match a pattern
  • Git: why the file deletion does not sync?
  • GIT Dev/Testing/Production Enviroment Best Practices
  • Git - Color words excluding {}
  • One Solution collect form web for “updating gitignore file from egit in Mac”

    If you add those files to .gitignore, you need also to remove them from the index.

    git rm --cached afile
    git commit -m " remove afile"

    See “Eclipse Git plugin – remove file from repo without deleting local” to see how to do it in Egit, without the console (even though the CLI — command-ilne interface) remains the safest way to do it)

    Team > Untrack

    Then and only then the .gitignore will be in effect.

    Git Baby is a git and github fan, let's start git clone.