Horje
git ignore is not working on local repository Code Example
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"




Shell

Related
how to check the difference between the staging area and commit Code Example how to check the difference between the staging area and commit Code Example
How to install u-torrent from a tar.gz on Kali Linux Code Example How to install u-torrent from a tar.gz on Kali Linux Code Example
curl copy from sftp Code Example curl copy from sftp Code Example
bash find files and operator Code Example bash find files and operator Code Example
symbolic link wsl mnt Code Example symbolic link wsl mnt Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14