I have a project in .git where I believe it is necessary to skip some files. However, I put the command and the folder continues to appear in git status. I did this:
creating gitignore file
touch .gitignore
Including files / directories in .gitignore to be ignored
# ignora os arquivos com extensões
.gitignore
# ignora quaisquer diretórios chamados "metadata"
.metadata/
.recommenders/
But when giving the git status the changes that should not appear continue to appear, as the .gitignore has disappeared from the git status but the folder keeps appearing.