I have recently created a new repo and copied all my Java code written with eclipse in that repo. I have also a .gitignore file to ignore all the eclipse related .class bin files but when i try to push my changes to repo it starts to upload all the stuff and thats huge 140 MB. I wonder why ??
Below, i will tell you the steps that i have been following
1: In my Java Algorithm git folder i copied my Java project directly from the Eclipse workspace
2: Created a .gitignore in the same folder
3: Now the git status shows my java project as untracked.
4: I add it commit it and push it. But here it totally ignores .gitignore..
EDIT: Here is my .gitignore
C:\Users\Salman\Documents\GitHub\Java-Algorithm [master +1 ~0 -0 !]> cat .gitignore
bin
.settings
.classpath
.project
*.class
*.jar
*.war
*.ear
and the files in my Java Eclipe Project i.e DesignAndAnalysisOfAlgorithms are
C:\Users\Salman\Documents\GitHub\Java-Algorithm\DesignAndAnalysisOfAlgorithm [master +1 ~0 -0 !]> ls
Directory: C:\Users\Salman\Documents\GitHub\Java-Algorithm\DesignAndAnalysi
sOfAlgorithm
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 8/12/2012 2:04 PM .settings
d---- 8/12/2012 2:04 PM bin
d---- 8/12/2012 2:04 PM src
-a--- 8/12/2012 4:52 AM 301 .classpath
-a--- 8/12/2012 4:52 AM 404 .project
Thanks