git update gitignore
git rm -r --cached .
git add .
git commit -m "update gitignore"
git update gitignore
git rm -r --cached .
git add .
git commit -m "update gitignore"
reinit gitignore
# rm all files
git rm -r --cached .
# add all files as per new .gitignore
git add .
# now, commit for new .gitignore to apply
git commit -m ".gitignore is now working"
gitigore rm cache
git rm -r --cached .
git add gitignore
$ touch .gitignore
remove gitignore files
git ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached
git commit -am "Remove ignored files"
// answer from: thSoft
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us