After any changes to the git repo, the .gitignore file is shown as modified when "git status":
modified: .gitignore
modified: someclass.java
It simply adds a new line "/bin/", so that after af few commits the .gitignore file looks like this:
bin/
/bin/
/bin/
/bin/
I am using Eclipse. How can I fix this?