gitignore files fromo previouus commits code example Example: apply gitignore after commit git rm --cached $file