1. git rm --cached <some_file_pattern_here> (i.e. app/**/*.xml) 2. Commit the removal. 3. Add the pattern to your .gitignore to avoid it in the future.