How to Untrack Committed Files from Git 🌱
- Run the command
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch <filepath (or folderpath)>" HEAD
- Make sure the files are now in your
.gitignore
before you stage and then commit again
Notes mentioning this note
There are no notes linking to this note.