Let me offer a counterpoint.
I have always liked using proper typography, or at least I do make an effort to do so. In terms of dashes, we have the hyphen-minus (0x002D), en-dash (0x2013), em-dash (0x2014) and the horizontal bar (0x2015).
The hyphen is slightly narrower than the en-dash, but this difference is quite hard to see.
On a normal keyboard, only the hyphen can readily be typed. Using the hyphen as replacement for the en-dash is extremely widespread and pretty much accepted nowadays, except in environments where proper typesetting is paramount.
There really aren't that many situations where you want or need a literal --
in normal text. Some programming languages use --
for single line comments (e.g. Lua), but I hardly see why you'd want this in a title.
Several Markdown dialects and even several word processors automatically replace --
with the a dash precisely for this reason – it is usually used as a workaround for a normal keyboard not having dashes. The usual convention is, however, to replace --
with the en-dash and ---
with the em-dash, not just --
with the em-dash, leaving the en-dash out.
As said in the answer in 2010, this goes back to the original SmartyPants description, and even LibreOffice replaces --
with the en-dash, but does not replace ---
with the em-dash (at least up until 2014; I am not sure what new versions do).
What is odd though is that while the 2010 answer references SmartyPants, in SmartyPants we see this usage:
Dashes (“--” and “---”) into en- and em-dash entities
While Stack Exchange converts it this way:
Dashes (-- and ---) into &emdash; entity
Instead of removing this feature I would vote for changing it to conform to the established SmartyPants standard and to consider using it on the body text as well, except obviously in code (and other non-text elements, like links).
--
in the title: Meaning of Git checkout double dashes.--
in the Title. I looked at 200 of them and have yet to find even one where doing the replacement is a real improvement, whereas the cases where it causes harm are quite numerous.<!-- comment -->
andi--;
and--i;
and oh, say half of any git (or even *nix) commandline you could conceive." -- "
(with spaces around it) is a bit odd given that in the English language the em dash (—) is typically used without spaces around it: "Wait—what did you say?". See also en.oxforddictionaries.com/grammar/dash-and-em-dash