6
To remove files from 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 command.
In doing so 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 staged area. Both commands perform the same action, but there is some difference between them?
Why of the negative?
– Jefferson Quesado