cara menghapus file dari perintah git

git rm --cached file1.txt
git commit -m "remove file1.txt"
Stupid Shrike