how to ignore commited files in git code example Example: git remove file from gitignore git rm --cached <file>