About this question
I need to exclude a folder (name uploads) from tracking. I tried to run
git rm -r --cached wordpress/wp-content/uploadsand after that, I added the path to .gitignore
/wordpress/wp-content/uploadsbut when I ran git status t they show up as deleted. If I try to commit the changes, the files will be deleted, not only removed from tracking.
What am I doing wrong?
I have also tried
git update-index --assume-unchanged but this seems to untrack only files. But I need to remove an entire folder (including subfolders) from tracking.