WEQA HUDSA
WEQA HUDSA

Reputation: 113

Why does git rm not work?

I am trying to remove a dir from the remote git repository. However, when I do:

$ git rm --cached QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20150701_20160630_TE_442_DOR_0.09_AF_sigmoid
    fatal: pathspec 'QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20150701_20160630_TE_442_DOR_0.09_AF_sigmoid' did not match any files

I get a fatal error. Any idea?

$ ls
QTNNSimplePredictTensorflowDataGen_HLD_2000,2000_DOI_2_PG_1_WD_0.0_SOT_allpair_20140101_20151231_TE_443_DOR_0.02_AF_sigmoid
QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20140101_20151231_TE_442_DOR_0.09_AF_sigmoid
QTNNSimplePredictTensorflowDataGen_HLD_240_DOI_1_PG_1_WD_0.0_SOT_allpair_20150701_20160630_TE_442_DOR_0.09_AF_sigmoid

Upvotes: 2

Views: 8843

Answers (1)

Marina Liu
Marina Liu

Reputation: 38096

It's caused you have removed it in git version control.

You can use git status find it. Just delete it directly in your working directory.

Upvotes: 2

Related Questions