How to git rm a file whose name starts with ':' -
i've accidentally got file in repo named :web,
. when typing git rm :web,
seems think colon part of command , not start of filename:
fatal: pathspec 'web,' did not match files
quotes don't make difference.
you need escape :
(and not in shell, git
itself):
git rm '\:web,'
or
git rm \\:web,
alternatively, use :
-based pathspec error telling about. example:
git rm :::web,
Comments
Post a Comment