Interview practice question
.gitignore isn't ignoring a file
Cloud & DevOps · Git and Version Control · Beginner
You added a file to .gitignore, but Git still shows it as modified. Why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- File already tracked.
- .gitignore only affects untracked files.
- git rm --cached file.
- Commit the removal.
- Check pattern correctness.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.