0

There is /android directory where is set up android project(by eclipse) which tree -a looks like:

.
├── AndroidManifest.xml
├── assets
├── bin
│   ├── 
├── .classpath
├── gen
│   ├── 
├── .gitignore
├── ic_launcher-web.png
├── libs
│   └── 
├── lint.xml
├── proguard-project.txt
├── .project
├── project.properties
├── res
│   ├── 
├── .settings
│   ├── 
└── src
    └──

also in this folder .gitignore is set as:

# generated files
bin/
gen/

# Eclipse project files
.classpath
.project

The issue is that git does not take into account it. Exampl: every time the .classpath from above directory get modified it is marked under git as a modified.

There is one .gitignore over the /android but it is commited as empty.

Regards

Magnus Bäck
  • 11,381
  • 3
  • 47
  • 59
Jacob
  • 14,949
  • 19
  • 51
  • 74
  • 4
    `.gitignore` is for ignoring *new* files, not modifications to *already tracked* files. See http://git-scm.com/docs/gitignore – Biffen Oct 23 '14 at 12:17
  • That's logical.. any idea how to effectively clean repository from unwanted files/directories ? – Jacob Oct 23 '14 at 12:20
  • 1
    issue `git rm --cached .classpath` first. – Marko Topolnik Oct 23 '14 at 12:20
  • @Kuba That sounds like an entirely different question, but have a look at `git clean`. – Biffen Oct 23 '14 at 12:23
  • 1
    @MarkoTopolnik voilà! Simply we need to remove that file -> commit -> add again. It works. Thanks – Jacob Oct 23 '14 at 12:26
  • Just note that all others will have their `.classpath` deleted when they pull. This could be a major concern. BTW if you used the `--cached` option, the file would not have been removed from the filesystem, just from the index. – Marko Topolnik Oct 23 '14 at 12:29

0 Answers0