To remove files from the staged area I use the command:
$ git reset HEAD <file_name>
However I accidentally applied the command:
$ git reset <file_name>
I forgot the HEAD of the command.
When I did this I got the message:
fatal: ambiguous argument 'class / control / C_UsuarioFerias.php': unknown revision or path not in the working tree. Use '-' to separate paths from revisions, like this: 'git [...] - [...]'
I interpreted the same and then applied the command:
$ git reset -- <file_name>
So the file has been removed from the staged area. Both commands perform the same action, but are there any differences between them?