Usuń plik z śledzenia git
git rm --cached <file_name>
Fahim Foysal
git rm --cached <file_name>
git rm -r --cached File-or-FolderName
git commit -m "Removed folder from repository"
git push origin master
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
git rm --cached file_name
git update-index --assume-unchanged <file>