I need to add several files to group them into a single commit, but I have to exclude one of them. In this answer, the code given to do this is:
git add -u
git reset -- file_to_ignore.dat
I'm not sure what the dashes do in the last command. What is the difference with the following?
git reset file_to_ignore.dat
which is how it's shown in this tutorial.