Answers for "git remove files in gitignore"

5

git ignore still tracking

git rm --cached <file>

git rm -r --cached <folder>
Posted by: Guest on January-15-2020
1

git remove all files from gitignore

git ls-files -i --exclude-from=.gitignore | %{git rm --cached $_}

// works with windows powershell
Posted by: Guest on April-15-2021
1

git update gitignore remove files

git rm --cached `git ls-files -i -c --exclude-from=.gitignore`
Posted by: Guest on August-15-2021

Code answers related to "git remove files in gitignore"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language