“–” in git and *nix commands
In git, a ' -- ' before the file list tells git that all the next arguments should be interpreted as filenames, not as branch-names or anything else. It's a helpful disambiguator sometimes. The '--' is not only a git convention, but something you find in various places in on the *nix commandline.
rm -- -f(remove a file named
-f) seems to be the canonical example.
Taken from: http://stackoverflow.com/a/727725
Written on July 7, 2015