0

My .gitignore file looks like this, however it is not ignoring target folder,

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

#Compiled target packages
######################
target/
project/target/
.idea/
.idea
.idea/workspace.xml

Any help will be highly appreciated. Thanks.

tostao
  • 2,803
  • 4
  • 38
  • 61
beingmanish
  • 1,040
  • 8
  • 21
  • It looks good. But if it is not ignoring folder than delete folder once and then try to run again. – Learner Nov 03 '17 at 11:43

1 Answers1

3

You probably added .gitignore file after the target folder creation.

Be careful before doing this for unchecked files. Then use this command at your project.

git rm -r --cached .

After this operation, you may need to commit for removing all undesirable files at repository.

git add .
git commit -m 'send with gitignore activation.'
Erçin Akçay
  • 1,383
  • 4
  • 18
  • 34