Delete all previously tracked but should be ignored files no better way but: git rm -r --cached . git add .