Git keeps adding files in .gitignore on first commit and push to remote
18:02 30 Dec 2021

I am trying to do my first commit and push to github. Originally my angular/cache was not in the gitignore file. Now I have added it and tried to commit and push but it keeps including the angular/cache dir ie it keeps trying to add previously tracked stuff I think.

Things I have tried:

git rm -r --cached . && git add . && git commit -am "Remove ignored files"
git push -u origin master

I have also tried git update-index --assume-unchanged .angular/cache

Everytime I the filed keep adding

git gitignore