git rm --cached -r build/If we type git rm -h we get an explanaation that:
--cached only remove from the indexby index it means tracked files inside the staging area (files are always tracked once they get committed.) A gitignore has no effect to files that is already tracked, so we use git rm --cached.
No comments:
Post a Comment