I have been and made a file called "-_todo.txt" in my git folder which I have been happily using since to keep a list of my todos. Now I'd like to rename it something more sensible e.g. "todo.txt". I understood you should use "git mv" to do so. However
git mv -_todo.txt todo.txt
gives me an error: unknown switch. Trying out for the sake of trying
git mv "-_todo.txt" todo.txt
gave the same error.
Searching the internet the last 30 minutes with my favorite search engine didnt help me find anything useful ("git mv filename with underscore"). The official docs on "git mv" didnt help either.
How to rename such a file?
Note on duplication:
Although I agree - in hindsight - this question has been answered elsewhere, the associated title of that question is arguably a bit cryptic/hard to find if searching for something like "git mv filename with underscore [in it]". Maybe improve the title/search-ability of that question/answer? - maybe Im being a hassle.