Gitignore does not work

1

My .gitignore continues displaying the folder and some files. I'd like to ignore them all at once. I left it like this

ignore

/*
*
/*/
*/*
*.*
.*
!.gitignore

Not Ignore

#plugins/*
!plugins/Indicadores/
!plugins/Base/
    
asked by anonymous 09.10.2017 / 23:11

2 answers

1

Just put the name of the folder or file with extension:

/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor

O not ignore will show normally, as the name itself says.

    
09.10.2017 / 23:39
0

If you've already committed files / folders you do not want, putting them in .gitignore will not remove them. If this is the case:

  • Delete the files and folders you do not want from the repository.
  • Commit the changes.
  • Change your .gitignore and commit.
  • Your files will now be ignored.
04.12.2018 / 11:40