remove-ignored git rm --cached ignored.txt this removes tracking of the file but does not delete it from the local repo. add the changes and commit