git rm --cached file.txt
git commit -m "Remove file.txt from Git tracking"