Always when I run git status some files are listed as untracked, that is how it should be. But I would like to not have them listed there everytime I run git status. As what I have understood, I should add those files to an .gitignore-file.
In my project I have a file .classpath and a directory .gradle/* that I want to ingore.
My .gitignore file looks like this:
.classpath
.gradle/*
but these files are still listed as "untracked" when I run git status. Is there anything wrong with my .gitignore file or how should I fix this?
Here is my git status output:
C:\myproject>git status
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   src/Test.java
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       .classpath
#       .gitignore
#       .gradle/
no changes added to commit (use "git add" and/or "git commit -a")
 
     
    