Hapus file dari repositori git tanpa menghapusnya dari lokal

git rm --cached myfile
Yousef Qaoud