Answers for "git ignore is not working on local repository"

12

git ignore not working

git rm -r --cached .;
git add .;
git commit -m "Untracked files issue resolved to fix .gitignore";
Posted by: Guest on February-16-2021
-1

git ignore file is not working

git rm -rf --cached .
git add .
Posted by: Guest on June-02-2020
0

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"
Posted by: Guest on January-18-2022

Code answers related to "git ignore is not working on local repository"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language