git configuration solution .gitignore not take effect in the java project

Having submit multiple versions, temporarily add a neglected to take effect

We need to execute the command line to clear the cache

git rm -r --cached .

Then add the file submitted .gitignore

git add .
git commit -m 'update .gitignore'

 

Guess you like

Origin www.cnblogs.com/emmeet/p/11075329.html