Relative paths to files check if the file exist on the file system to determine if it is a path and not a RegEx. This is of course not working for deleted files, eg git checkout -- deleted\file.txt.
-- could be used to detect if the following arguments are paths, but the use of -- is not mandatory. Maybe it will work in most cases? (And is -- only used before paths???)
Relative paths to files check if the file exist on the file system to determine if it is a path and not a RegEx. This is of course not working for deleted files, eg
git checkout -- deleted\file.txt
.--
could be used to detect if the following arguments are paths, but the use of--
is not mandatory. Maybe it will work in most cases? (And is--
only used before paths???)