当前位置: 动力学知识库 > 问答 > 编程问答 >

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

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: