May 15, 2019 1 min.
After you committed/pushed files to GIT repository, if you decide to ignore some files/directories using .gitignore then they won't be automatically removed from git repository. Following command can be used for removing those ignored files from repo. TL;DR git rm -r --cached . git add . git commit -m ".gitignore fix" git push Detailed Explanation To remove the the ignored files/dirs from repo, use GIT remove command as follows. git rm -r --cached .