{"comment":{"url":"https://api.github.com/repos/edunham/site/comments/19424822","html_url":"https://github.com/edunham/site/commit/14c0651f950ee4ac03c49913c53dd057daad238b#commitcomment-19424822","id":19424822,"user":{"login":"mjg","id":233215,"avatar_url":"https://avatars.githubusercontent.com/u/233215?v=3","gravatar_id":"","url":"https://api.github.com/users/mjg","html_url":"https://github.com/mjg","followers_url":"https://api.github.com/users/mjg/followers","following_url":"https://api.github.com/users/mjg/following{/other_user}","gists_url":"https://api.github.com/users/mjg/gists{/gist_id}","starred_url":"https://api.github.com/users/mjg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjg/subscriptions","organizations_url":"https://api.github.com/users/mjg/orgs","repos_url":"https://api.github.com/users/mjg/repos","events_url":"https://api.github.com/users/mjg/events{/privacy}","received_events_url":"https://api.github.com/users/mjg/received_events","type":"User","site_admin":false},"position":24,"line":24,"path":"2016/10/13/creating_and_deleting_a_git_branch_named_d.rst","commit_id":"14c0651f950ee4ac03c49913c53dd057daad238b","created_at":"2016-10-14T08:16:45Z","updated_at":"2016-10-14T08:16:45Z","body":"Git does not do any escaping.\r\n\r\nThe `\\` tells the shell to escape the `-`, which doesn't need any escape, so the shell passes ``-D`` as an argument to git just like above. At least my shell does that, and as a consequence I get ``fatal: branch name required`` just like in the first case.\r\n\r\nPassing a literal ``\\`` to git would require ``git branch \\\\-D``(or the escape you use below), i.e. escaping the ``\\`` from the shell. In that case git gets the invalid branch name ``\\-D`` as an argument."}}
{"actor":{"display_login":"mjg"}}