In my repository, I had some changes (let's say that all the edited files' paths started with abc_) that I wanted to discard, with the command:
git checkout -- abc_*
However, I made a typo and instead of two dashes I used only one:
git checkout - abc_*
Looks like instead of discarding the changes, the command added even more changes to be committed - in fact, it added a few hundred files whose names started with abc_ (but not all of them in the project!).
My question is: What have I just done? Or, more precisely: what does the dash stand for?
All the answers that I was able to find explained what two dashes (--) do, but I understand this. I also believe I understand how git checkout works, both with the branch/tree-ish argument or with file paths. I cannot find any information on the single dash meaning, however - dashes are also used to designate parameters (e.g. git checkout -b ...), and it makes searching for this command problematic.