gitignore commands code example
Example 1: gitignroe remove folder
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
Example 2: .gitignore
node_modules
.DS_Store
.env
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
node_modules
.DS_Store
.env