Gitignore does not work

Asked

Viewed 2,570 times

2

My . gitignore keeps displaying the folder and some files. I’d like to ignore them all at once. I left him like this

ignore

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

Not Ignore

#plugins/*
!plugins/Indicadores/
!plugins/Base/

2 answers

1

If you’ve committed files/folders that you don’t want, put them in .gitignore will not remove them. If this is the case:

  • Delete the files and folders you don’t want from the repository.
  • Commit to the changes.
  • Alter your .gitignore and commit.
  • Now your files will be ignored.

1

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

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

not ignore will normally show, as the name says.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.