I have added and committed a file ----MY_Session.php
. I left hyphens in the beginning by mistake. Now I want to delete this file, but when I try to run
git rm -----MY_Session.php
it throws the following error.
error: unknown option `---MY_Session.php'
usage: git rm [options] [--] <file>...
-n, --dry-run dry run
-q, --quiet do not list removed files
--cached only remove from the index
-f, --force override the up-to-date check
-r allow recursive removal
--ignore-unmatch exit with a zero status even if nothing matched
I tried all the options listed above but none of them worked.
How can I delete this file?