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

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -