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

Popular posts from this blog

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -