git ignore not working
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
git ignore not working
git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
git ignore file is not working
git rm -rf --cached .
git add .
git ignore is not working on local repository
3393
Even if you haven't tracked the files so far, Git seems to be able to "know" about them even after you add them to .gitignore.
WARNING: First commit or stash your current changes, or you will lose them.
Then run the following commands from the top folder of your Git repository:
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
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