I've seen commands like:
git reset e542 -- readme.txt
I understand this command puts in the index the contents of the file readme.txt from commit e542. But what's the --
option doing there?
The git reset man page lists it as optional for the first two forms but I couldn't find what it means.
git reset [-q] [<commit>] [--] <paths>…
git reset (--patch | -p) [<commit>] [--] [<paths>…]