I accidentially created and committed a file called --a in my git repository. Using git rm --a obviously did not work. How can I remove this file?
--a
git rm --a
You can use
git rm ./--a
This can be used to remove any file with the name starts with '-'