Answers for "previously tracked file to gitignore"

1

gitignore already tracked files

# to ignore all files with changes detected
git rm -r --cached .
git add .
git commit -am "Remove ignored files"
Posted by: Guest on April-12-2021
0

gitignore files that are already tracked

git rm --cached <file> // Stop tracking file
git rm -r --cached <folder> // Stop tracking folder
Posted by: Guest on March-09-2021

Code answers related to "previously tracked file to gitignore"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language